How can I add save button for each form and not one for all forms (as we have in magento by default)? I want something like that or into the form. I've tried this code
$fieldset->addField('yourfield', 'button', array(
'label' => Mage::helper('thorleif')->__('Button Labels'),
'value' => Mage::helper('thorleif')->__('Button Caption'),
'name' => 'yourfield',
'style' => 'width:64px; height:21px;',
'class' => 'form-button',
'onclick' => "setLocation('{$url}')",
));
But I get a button without word like this
I've seen that always the value in html source code goes empty. So I've read that you have to change $form->setValues
in your file by $form->addValues
and it will work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.