PDA

View Full Version : DateField valid and call function



mjfigur
16 Jun 2011, 8:30 AM
All,

I am sure this is a pretty easy question but it is just causing me some issues. I am using ExtJS 3.3.1 and below is my code for a DateField. When the DateField is valid I would like it to call this function, however nothing is currently happening when I change the field.

Thank you in advance for your assistance.

Matt


new Ext.form.DateField({
id: dt.id,
applyTo: dt,
"format": 'm/d/Y',
invalidClass : 'ux-status-error',
validateOnBlur : true,
valid: function () {refreshEmp();
}
//"altFormats": 'j|j/n|j/n/y|j/n/Y|j-M|j-M-y|j-M-Y'
});

skirtle
16 Jun 2011, 5:11 PM
See http://www.sencha.com/forum/showthread.php?137202