Eric Belair
Eric Belair

Reputation: 10692

How can I programmatically show the toolTip on a TextInput when a validator returns "invalid"?

I have a form with a TextInput that has a custom Validator. I call the Validator logic and handle the result programmatically. This all works fine, except for one problem. The TextInput gets highlighted when it is invalid, but the toolTip that contains the errorMsg does not display until I roll the mouse cursor over the TextInput. Is there anyway to get the toolTip to show programmatically?

Upvotes: 2

Views: 4897

Answers (2)

michael
michael

Reputation: 1160

Eric,

You may have a look at: Better form validation in Flex

This may help you to customize the validator .

Upvotes: 0

JStriedl
JStriedl

Reputation: 1296

You will probably need to programmatically re-create the text of the tooltip using the ToolTipManager.createToolTip function in your validator result handling function.

Check the documentation at the link, it seems pretty straightforward to spawn an instant tooltip.

Upvotes: 1

Related Questions