I want to add a customized validator to a field,I do it like this:
Ext.apply( Ext.form.field.VTypes,{
sampleSetExist: function(val, field) {
alert('val='+val);
}
});
I find that the validator will be triggered once my key up,is there any way to let the validator triggered when the field lose focus?
thank you!
You can use the blur event, which get triggered when the field lose Focus
To enable a button to be only active when the form is valid use