I wanted design my admin from with following field type
Can any one tell me How can I implement this in Magento admin form.? How Edit/new will work with this? Thanks
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
you will need a custom renderer for the field.
you can create your own class, let's call it
This class can extend
And all you have to do is to rewrite the
getElementHtml in your class so you can append your second multselect and the buttons between them.
Then, in order to use this in your form you should add this in your form file right after
$fieldset = $form->addFieldset(
$fieldset->addType( 'friendly_multiselect', Mage::getConfig()->getBlockClassName('[module_alias]/adminhtml_friendly_multiselect') );
then you can define your field like this
$fieldset->addField( 'field_name_here', 'friendly_multiselect', array(configurations go here) );
Then all your fields with type
friendly_multiselect should be rendered using your class.