Copy link to clipboard
Copied
Hello,
I am running Adobe Acrobat DC on a Mac Book Pro, and am trying to figure out a feature with no success. Currently I have the fillable fields set up so the instructional text shows, and disappears when you click on the field. The user can type the information they want and once done print the document with success. Currently I am accomplishing this by using a java script from this site:
Currently, what is happening is when a user does not fill out a field, the instructional text is printed on the form. What I would like is for the fields that are not filled out, to be printed as blank. I have tried clicking show on PDF but do not print, this however, causes the filled out text in those fields to not print as well. Is there a way to make this happen? Let me know if this makes sense. Thanks!
Copy link to clipboard
Copied
This can be done by expending the code provided in that thread and adding a command to make the field visible but not printable if it has the default value. For example, using the code I provided there it can be done like this:
// On Blur script:
if (event.target.value=="") {
event.target.value = event.target.defaultValue;
event.target.textColor = color.ltGray;
event.target.display = display.noPrint;
} else event.target.display = display.visible;
Copy link to clipboard
Copied
This can be done by expending the code provided in that thread and adding a command to make the field visible but not printable if it has the default value. For example, using the code I provided there it can be done like this:
// On Blur script:
if (event.target.value=="") {
event.target.value = event.target.defaultValue;
event.target.textColor = color.ltGray;
event.target.display = display.noPrint;
} else event.target.display = display.visible;
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more