How to get a Field of type "image" not to have a delete checkbox ? As it's a required attribute for my form, I don't need the delete checkbox.
Here is my addField example :
$fieldset->addField('filename', 'image', array(
'label' => Mage::helper('example')->__('Example image'),
'required' => true,
'name' => 'filename',
));
Best Answer
You need to create a custom renderer for the image.
For this create a class in one of your modules called
[Namespace]_[Module]_Block_Adminhtml_Helper_Image_Required
with this contentThen in your form block, right above your field (or higher) add this lines
and define your field like this: