Copy link to clipboard
Copied
Hello, I have pdf created in indesign with interactive text fields and checkboxes. Then in "Adobe pro" I defined default values for those text fields and "Will print" script, so that default values are not printable, if form fields are not filled with text. Interactive fields in form works perfect on PC/MAC, but doesnt work on smartphones (iOS) - text fields can not be edited, so form is only printable. Thats not problem at all. Problem is when someone want to print it with blank fields - default values stays there, because script "will print" does not work on smartphone. Is it be possible to define default values to be visible only on compatible pdf browsers? Or someone have any other solution for my problem?
Script for "will print"
for(var i=0;i<this.numFields;i++)
{ var oFld = this.getField(this.getNthFieldName(i));
if(oFld.type == "text") oFld.display = (oFld.value == oFld.defaultValue)?display.noPrint:display.visible;
}
Peter
Copy link to clipboard
Copied
Almost not scripts will work on mobile devices, unfortunately.
You can try it using PDF Expert by Readdle, but that's about your only option.
Copy link to clipboard
Copied
You may need to add a condition to clear the fields.
Hiding and unhiding a field doesn't clear the value in the hidden field.