Results 1 to 2 of 2

Thread: DateField valid and call function

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    12
    Vote Rating
    0
      0  

    Default DateField valid and call function

    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

    Code:
     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'
            });

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Vote Rating
    390
      0  

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •