Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Clear default value of text field in PDF form

Avatar

Level 1

Hi,

Is there a way in LiveCycle ES2 to clear the default value of a text field when a user clicks in/on the actual field? Similar to onFocus javascript event.  Any suggestions/examples would be greatly appreciated.  Thank you.

1 Reply

Avatar

Level 7

In your enter event for that field add code to clear the field.


this.rawValue = "";


If you want to only clear the field when the default value is present:


if (this.rawValue == "default value") this.rawValue = "";