I have several forms whose only difference is the text in the submit button.
I am trying to change the sending text by changing its value, but to no avail.
$form=getForm()//get a full Zend_Form object with elements. $form->getElement('mySubmit')->setValue('new value'); .... .... $form->render(); //This will still put 'mySubmit' in the [submit] (var_dumping it shows the new value in the _value member, tried also with setAttrib();
And this one:
$form=getForm()//get a full with elements Zend_Form object. $form->getElement('mySubmit')->setName('new value'); .... .... $form->render(); //This will still put 'newvalue' in the [submit] NO SPACES, no good :-(
source share