View Full Version : Marking field as invalid

28 Jul 2011, 1:46 AM
Is there any way to mark a field as invalid? I found some method called markInvalid() but that doesn't seem to work.

Anyone can help me out here?

Thank in advance.

28 Jul 2011, 5:55 AM
After watching this (http://www.sencha.com/learn/working-with-forms/) video I decided to just use the addCls() method.

CSS class used:

.error .x-form-label{
color: red;
}This is pretty much what I wanted but if anyone has a better idea please tell me.