drenda81
7 Jul 2008, 11:35 AM
Hi,
can I make a field of a form panel invalid manually?
For example if I make a form panel with several TextField, then I want to test a particular condition ONLY WHEN I click on Submit button. So I can't use field.setValidator() because validation in make on focus lost, instead I want to validate a particular field only when I click on submit button.
So there is the possibility to call a method of the field as: field.setInvalid(String description) or something similar?
Thanks a lot
can I make a field of a form panel invalid manually?
For example if I make a form panel with several TextField, then I want to test a particular condition ONLY WHEN I click on Submit button. So I can't use field.setValidator() because validation in make on focus lost, instead I want to validate a particular field only when I click on submit button.
So there is the possibility to call a method of the field as: field.setInvalid(String description) or something similar?
Thanks a lot