Hi,
I have a repeater whose rows contain:
• a text field that notionally is required, but is not declared as such in the definition (see below)
• a "delete me" booleanfield.
The field is not @required="true", because if the user clicks to add a row and then decides they don't want it after all, they must check the "delete me" box on that row and submit the form. So this state (text field empty, box checked) must be valid.
So I'm doing a check in the form.onValidate handler. I call setValidationError() on the text widget in the error case (field empty, "delete me" not checked), and that works fine.
But I also need the ability to clear the validation error if the field is empty and the "delete me" box is checked. How do I do this?
I tried setValidationError (null), but that didn't do the trick.
Any ideas?
I might be wrong, but I'm nearly sure I have both working: required fields in a repeater, with delete me checkboxes and setValidationError(null). I'm using still 2.1.4 Woody, so part I might be caused by actions causing validation, but Sylvain has fixed this yesterday, so this should work too.
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
