model view controller - Magento Adminhtml: Where do forms come from? -
my question comes seeing question , not being able find correct answer.
when adding new product, actual code come input fields? in aforementioned question, desire add maxlength attribute input box. dug around on hour , did find plenty of form helpers not 1 exact case.
how find true origin of (or any) form in magento?
if i'm understanding question correctly, majority of magento's form fields come varian_data_form can specify maxlength property via higher call, in:
$fieldset->addfield('title', 'text', array( 'label' => mage::helper('form')->__('title3'), 'maxlength' => '30', // <-- change here 'class' => 'required-entry', 'required' => true, 'name' => 'title', 'onclick' => "alert('on click');", 'onchange' => "alert('on change');", 'style' => "border:10px", 'value' => 'hello !!', 'disabled' => false, 'readonly' => true, 'after_element_html' => '<small>comments</small>', 'tabindex' => 1 )); example (and modified) from:
related:
Comments
Post a Comment