Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Text Field Disappearance

Not applicable
Hello, was wondering if there is a way for the default word(s) in a text field to disappear once the field is clicked on instead of the user having to backspace the whole word(s) out, thanks



Shane C
2 Replies
pguerett
Level 10
Level 10
You can add this code to the enter event of the field:



this .rawValue = ""



But then this will delete everything that they have in there each time they enter the field.
Not applicable
This worked for me in Acrobat, probably doesn't apply in Designer...but maybe there's an equivalent!



if (event.target.value == event.target.defaultValue)



{

event.target.value = ""

}



so.. as Paul said above, but only reset the field if its value is equal to its default value