I have a custom grid in Admin panel. When you want to edit entries to the grid it will load a form. The required field validations of this form are not working. I have define the fields as below.
$fieldset->addField('discount', 'text', array( 'label' => $helper->__('Discount Amount (%)'), 'required' => true, 'class' => 'required-entry', 'name' => 'discount', 'index' => 'discount', ));
Adding below two attributes not working. It saves even if the fields are empty.
'required' => true, 'class' => 'required-entry',
Am I missing something else here?