Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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 = "";