Results 1 to 2 of 2

Thread: Validation QuickTips to replace 'hint' QuickTips

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

    Default 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
    118
      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.

Posting Permissions

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