Expand my Community achievements bar.

Prepopulated Text "Hints" that disappear upon mouse Enter/Exit

Avatar

Level 1

So I have created a text field for date entry, that has an auto population giving the example for the user to type. When they mouse over the text field, the prepopulated text disappears and when they type it stays that way. I have already created this in Livecycle Designer using two javascript codes one for mouse enter and one for mouse exit.It works... except for one thing. After I have changed the field, if I mouse over again what I already changed/typed, it resets to the default value.

The codes I am using currently are:

this.rawValue = "  "

For the mouse entry, and for mouse exit is:

this.rawValue = "01/01/2014"

These are working, EXCEPT for the fact that when I "re-mousover" it just resets to the original default value.

ANy HELP???

1 Reply

Avatar

Level 10

Hi,

Have a look at this example, Adobe LiveCycle Designer Cookbooks by BR001: Adding Ghost Text to LiveCycle Designer form, it uses the null display pattern to add "hints", so you don't need to muck around with the actual value of the field.

Regards

Bruce