-
12 Feb 2009 6:21 PM #1
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!
-
12 Feb 2009 11:00 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Instead of registering a QuickTip you could also mark the field invalid with the hint message, e.g.
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.Code:Ext.getCmp('prc_startdate').markInvalid('m/d/Y format, e.g. 5/17/09');


Reply With Quote