vdrmrt
vdrmrt

Reputation: 872

How to leave some form elements blank after validating a Zend_Form

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

Answers (1)

tawfekov
tawfekov

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

Related Questions