Hi Matthew,
thanks for your reply.
> One note, though: you don't need to necessarily remove validators, or
> change from required to not required -- instead, set a validation group
> on the form; that way it will only try and validate those listed, and
> will only bind the values for those in the group. The usage is quite
> simple:
>
> $form->setValidationGroup($key1, $key2, $key3, $etc);
>
> // or:
> $form->setValidationGroup(array('key1', 'key2', 'key3', 'etc'));
This does not work. I have two required fields which I do not add to my
validation group and when I check the form, an input for both is
expected. When I set these fields to not required, then it works
regardless if I set the validation group or not.
Here is the Filter:
http://pastebin.com/Q3p4X11F
Here is the Form:
http://pastebin.com/0V2jeQ6n
And here is the relevant part of my Service:
http://pastebin.com/iGXqRvjU
When isValid() is called then the "group" and "status" fields have an
error due to the required flag.
What am I doing wrong here?
Best regards,
Ralf
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]