Last active
November 29, 2016 02:21
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download a functioning example from here.