View Full Version : [solved] How to force a TextField as Invalid ?

22 May 2009, 2:36 AM
I need to force a TextField as Invalid but without using a validator.
How can I do it with ExtJS 2.x (or 3.x) ?

I try to explain why I need it.

I'm creating a J2EE login form so the submit MUST be a standard submit (not a JSON results). So I need now to manage the Error Login Page.

I want to do mark as invalid User Id and Password field using standard ExtJS layout.
Of couse I can add a simple panel with a generic error message... But if I can use standard msgTarget i will be more happy =P~


22 May 2009, 2:44 AM
Please post requests for help in the Help folder.

22 May 2009, 2:45 AM
Now, which version are you in fact using?

22 May 2009, 4:44 AM
I'm sorry If I post in the wrong forum. Next time I will put more attention.
There is a way to move it ? I havent found it

My final application must be run under ExtJS 3.0 (and I believe it will delivered in about 6m)
So I'm looking for a solution bases on ExtJS 3.0


22 May 2009, 5:21 AM
Take a look at the markInvalid method.

If you wanted to force validation and auto trigger the standard validation you could also call the isValid method.

22 May 2009, 5:59 AM
Hi Aconran.
It is exactly what I'm looking for!!