How to programmatically show toolTip in TextInput when validator returns "invalid"?

I have a form with TextInput that has a custom Validator. I call the Validator logic and process the result programmatically. This all works great except for one problem. TextInput is highlighted when invalid, but the tooltip containing errorMsg is not displayed until I hover my mouse over the TextInput. Is there a way to get the program hint programmatically?

+2


source to share


2 answers


You will probably need to programmatically recreate the tooltip text using the ToolTipManager.createToolTip function in your validation function.



Check the documentation for the link, it seems pretty straightforward to bring up a tooltip.

+1


source


Eric,

You may take a look at: Better Form Validation in Flex



This can help you customize the validator.

0


source







All Articles