PDA

View Full Version : the invalid class disapear when receive then loose the focus



flamant
12 Jul 2011, 5:45 AM
Hi,
I have a Ext.form.DateField that is marked invalid after a form.submit. the dom element has a class 'x-form-invalid'. I suppose that it correspond to the red border class.

When I receive the focus then I loose the focus on the field the invalid class ('x-form-invalid') disappear

How can I keep the invalid class even if I receive then loose the focus ?

Thank you in advance for your answers

PS: I suppose it is the same for a Ext.form.Field

flamant
12 Jul 2011, 8:33 AM
I understood what is going on. I have a validator on my field which is fired when I loose the focus.

So the problem is to desactivate the validator when I have a previous invalid message and the value has not changed since this previous message