Copy link to clipboard
Copied
I have sample text in my fields, which I don't want to print. But, if someone fills out the form, I do want their filled-in information to print. Is this possible to set up?
Copy link to clipboard
Copied
OK, then you can use this code as the document's Will Print script:
for (var i=0; i<this.numFields; i++) {
var f = this.getField(this.getNthFieldName(i));
if (f==null) continue;
if (f.type=="button") continue;
if (f.valueAsString==f.defaultValue) f.display = display.noPrint;
else f.display = display.visible;
}
Copy link to clipboard
Copied
The script works in Adobe Acrobat DC and Acrobat Reader DC. What app does you use?
Copy link to clipboard
Copied
I'm using Acrobat DC and it still prints the title2 line.
Copy link to clipboard
Copied
I can't see this line on the printout.
Have you enabled Javascript in the preferences of Acrobat?
Copy link to clipboard
Copied
Javascript is enabled and working. Otherwise the name line would not be in all caps.
My printout still shows the Title2 line...
Copy link to clipboard
Copied
Post a screenshot of your printout.
Copy link to clipboard
Copied
Works fine for me as well.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now