Just additon in explanation of the problem.
Actually I am using form.xml to prepare the Zend Form.
In this form.xml I have set update, register, send mail as disabled as below
<update>
<type>submit</type>
<options>
<label>update</label>
<disabled>disabled</disabled>
</options>
</update>
Aniketto wrote:
>
> Hi all,
> I am developing a application which need buttons to be enabled on request
> type.
> On my first page there are links to different pages like 'update',
> 'register', 'send mail' etc.
> On click of any of these links a search page opens where user can search
> for people by name and a list of people is displayed. This search page has
> button for update, register, send mail etc respective button will take you
> to respecive page.
> Now all these buttons are disabled in form.xml and depending on request
> type (ie update, register etc ) I have to enable that respective button
> only.
>
> I am enable to retrieve button with $form->getElement($name);
> But I am not able to enable it.
> Can anybody suggest proper method for enabling this button.
>
> Thanks in advance,
> Aniket
>
--
View this message in context:
http://www.nabble.com/enable-submit-button-dyanamically-tp21968533p21970072.html
Sent from the Zend Framework mailing list archive at Nabble.com.