Hi,

I need to be able to hide Zend_Form errors dynamically if the user changes
some options after a form fails validation.

How do I inject an id attribute in to the error markup ?

<ul class="errors" id="SOME ID HERE"><li>Some Error
Message</li></ul></td></tr>

It would be good if I could specify the id when bulding the form element.

I have tried things like:-

$element->getDecorator('Error')->setOption('id', 'test');

But no joy.

Many thanks.



-- 
View this message in context: 
http://old.nabble.com/Zend-Form-Decorators---Adding-id-Attribute-to-Error-output.-tp26388632p26388632.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to