Reputation: 872
I have created a custom Zend_Form with validators. After the validation and validation failed all the fields get their submitted values. This is OK for some fields but not for others. How can I leave some fields blank after an unsuccessful validation.
Upvotes: 1
Views: 180
Reputation: 5122
well you can set it manually like this in side the form use
$password->setValue("");
outside the form use
$form->getElement('password')->setValue("");
Upvotes: 1