PDA

View Full Version : want msgTaget: 'qtip' to display when the invalid field receives focus



hghubert
30 Jan 2012, 3:53 PM
Hello,

I am using the standard msgTarget: 'qtip' to display validation errors in certain fields in my application.

The trouble is that I want the tooltip to display when the input focus goes to the field and not when the mouse hovers there.

Is there a simple way to accomplish this?

I tried using 'under' but there are render bugs in extjs 4.07 and I would prefer not pushing the other fields in the form down when there is a validation error.

Thanks for any information you can provide.

Greg

mitchellsimoens
31 Jan 2012, 6:47 AM
You can listen for the focus event on a field to check validity and then show the qtip if false.

hghubert
31 Jan 2012, 7:20 AM
Thanks for the reply. That is what I figured I would have to do.

Can you tell me how to display the qtip error message programatically and if I can specify the position that it displays?