1

How can I add save button as in the container for each form and not one for all forms (as we have in magento by default)? I share with you this image is what I have. And I want something like that I get a button without word like this

using 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}')",
));
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.