Skip to content

Instantly share code, notes, and snippets.

@JoelGeraci
Last active November 29, 2016 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoelGeraci/0fa0c0d60295b4f257838f53c43aa2a6 to your computer and use it in GitHub Desktop.
Save JoelGeraci/0fa0c0d60295b4f257838f53c43aa2a6 to your computer and use it in GitHub Desktop.
Acrobat JavaScript: This script will display the text of the field tooltip when the value is empty prompting the user to enter data
/*
This script will display the text of the field tooltip when the value is empty prompting the user to enter data
Add this code to the custom format script for text fields.
*/
if (event.target.value == "") {
event.value = event.target.userName;
}
@JoelGeraci
Copy link
Author

Download a functioning example from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment