Expand my Community achievements bar.

SOLVED

Default text that disappears when clicked in to.

Avatar

Level 3

Is there a way of including instructional default text in a text field that disappears when the user clicks in to the field to type their information, and if so, can it reappear if the person doesn't add data and clicks out of the text field?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

BR001's sample grabs the text from the tooltip in the accessibilty pallette.

The main part of the script is the one you put in the initialize event.

The other scripts for the text colors etc. are optional.

View solution in original post

4 Replies

Avatar

Level 3

Thanks for that suggestion.

The explanation made sense but I am pretty new to scripting - where should the text I would like to include as a grey instruction sit within the scripting. And what do the different colours of the script text in the explanation mean - should it all be included?

Thanks for your help.

Avatar

Correct answer by
Level 10

Hi,

BR001's sample grabs the text from the tooltip in the accessibilty pallette.

The main part of the script is the one you put in the initialize event.

The other scripts for the text colors etc. are optional.

Avatar

Level 3

Works perfectly now - thanks for that!