How to make the add field for image in custom module admin grid as required entry?
The following is the way i have given , but it is not taking as required - entry field while saving.
$fieldset->addField(
'background_image',
'image',
array(
'label' => $this->__("Background Image"),
'class' => 'required-entry',
'required' => 'true',
'name' => 'background_image',
'note' => $this->__("Background Image")
)
);
$fieldset->addField(
'background_image_hover',
'image',
array(
'label' => $this->__("Background Hover Image"),
'class' => 'required-entry',
'required' => 'true',
'name' => 'background_image_hover',
'note' => $this->__("Background Hover Image")
)
);