1. #1
    Ext User LouisArquie's Avatar
    Join Date
    Nov 2008
    Location
    Silicon Valley
    Posts
    20
    Vote Rating
    0
    LouisArquie is on a distinguished road

      0  

    Default Validation QuickTips to replace 'hint' QuickTips

    Validation QuickTips to replace 'hint' QuickTips


    First post here.
    Thanks for a fantastic framework that I have been using for now more than 3 months.

    I have a 'hint' QuickTips over a DateField:
    Ext.QuickTips.register({
    target: 'prc_startdate',
    title: 'm/d/Y format, e.g. 5/17/09'
    });

    My problem is that these blocks any automatic validation QuickTips that comes on an invalid field.
    How can I overwrite the 'hint' QuickTips with the 'invalid' QuickTips?

    Thanks in advance!

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    94
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Instead of registering a QuickTip you could also mark the field invalid with the hint message, e.g.
    Code:
    Ext.getCmp('prc_startdate').markInvalid('m/d/Y format, e.g. 5/17/09');
    Or you could change the msgTarget to side, so the error is displayed as an icon with a QuickTip instead of a QuickTip on the element itself.

Thread Participants: 1