Magento Admin Form


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $fieldset->addField('title', 'text', array(
  2. 'label' => Mage::helper('form')->__('Title3'),
  3. 'class' => 'required-entry',
  4. 'required' => true,
  5. 'name' => 'title',
  6. 'onclick' => "alert('on click');",
  7. 'onchange' => "alert('on change');",
  8. 'style' => "border:10px",
  9. 'value' => 'hello !!',
  10. 'disabled' => false,
  11. 'readonly' => true,
  12. 'after_element_html' => '<small>Comments</small>',
  13. 'tabindex' => 1
  14. ));

URL: http://www.excellencemagentoblog.com/magento-admin-form-field

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.