Form with a warning that a value should be corrected if wrong.
Hi,
I'm trying to solve a warning message on my custom validator.
This message should only be visible to the user once if the field don't validate.
The next submit will result in that the form is submitted without errors and accepts the value.
A "notice" message that the value entered is not in the range and should be corrected if its not correct.
If correct we will accept in in the next submit of the form.
How is this best solved?
the field looks like this now:
[PHP]
$validateSalary = new Default_Plugin_ValidatorSalary();
$salary = new Zend_Form_Element_Text('salary');
$salary->setLabel('Lön')
->setRequired(true)
->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Måste fyllas i')))
->addValidator($validateSalary, false);
[/PHP]
~JoGi
|