Hide default values on print
I am trying to create a pdf form that hides default values on print, but will print entered values. Is there a way to do this through javascript?
I am trying to create a pdf form that hides default values on print, but will print entered values. Is there a way to do this through javascript?
Yes,
Write a script for the WillPrint event that will test all fields. If the field contains the default value, then set it's display property to "display.noPrint"
Here's the meat of the script
var oFld = this.getField(strFieldName);
oFld.display = (oFld.value == oFld.defaultValue)?display.noPrint:display.visible;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.