Thursday, 19 September 2013

Custom validation message , Extjs

With invalid text property we can display custom message :
        xtype: 'datefield',
        allowBlank: false,
        fieldLabel: 'Start date',
        msgTarget: 'under',
        invalidText: 'This value is not a valid date!'
     Ext.data.validations.presenceMessage = "error here";