is there a way to create a custom back-end when adding a new field to a form's fieldset?


$newField = $fieldset->addField('new_field', 'text', array(
   'name' => 'foo',
   'value' => 'bar',
   'backend' => 'mymodule/custom_field_type',

Use the following:

$fieldset->addType('your_new_type_name', 'Vendor_Extension_Block_Renderer_Classname');

Where class 'Vendor_Extension_Block_Renderer_Classname' must extends 'Varien_Data_Form_Element_Abstract' class

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.