Skip to content

Instantly share code, notes, and snippets.

@birchestx
Created January 18, 2014 10:47
Show Gist options
  • Save birchestx/8488821 to your computer and use it in GitHub Desktop.
Save birchestx/8488821 to your computer and use it in GitHub Desktop.
$fieldset->addField('select', 'select', array(
'label' => Mage::helper('form')->__('Select'),
'class' => 'required-entry',
'required' => true,
'name' => 'title',
'onclick' => "",
'onchange' => "",
'value' => '1',
'values' => array('-1'=>'Please Select..','1' => 'Option1','2' => 'Option2', '3' => 'Option3'),
'disabled' => false,
'readonly' => false,
'after_element_html' => '<small>Comments</small>',
'tabindex' => 1
));
- See more at: http://www.excellencemagentoblog.com/magento-admin-form-field#sthash.DxnOQNLW.dpuf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment