View Full Version : Need help for validation

19 Dec 2012, 7:21 AM
Hi, I encountered a problem wile trying to validate a field : I just do not know how to change its validity property ! I have to compare two Date() objects, and to return if it's ok or not. But in case it is not, I don't know how to mark the fields invalid and prevent the form from being submitted. Can somebody help ?

19 Dec 2012, 7:32 AM
Visit the Forms documentation (http://docs.sencha.com/ext-js/4-1/#!/guide/forms) and in particular, look at the Custom Validations section.

19 Dec 2012, 7:35 AM
Right, thanks for help :)