7 Replies Latest reply on Apr 15, 2016 1:48 PM by Coleen77

    Hide instructional text when printing hard copy

    Coleen77

      I have the following scripts in my Acrobat PDF document field properties so the Instructional Text will appear when blank, and disappears if the user types in the field.  After filling out the form, we print a hard copy, and wherever there is a blank field, the Instructional Text prints too.  How can we prevent this from printing?   Thank you in advance for your help!

       

      // Custom Format script for text field

      if (!event.value) {

      1. event.value = "Instructional text goes here";
      2. event.target.display = display.noPrint;

      } else {

      1. event.target.display = display.visible;

      }

       

      // On Focus script:

      if (event.target.value==event.target.defaultValue) {

      1. event.target.value = "";
      2. event.target.textColor = ["RGB", 0/255, 153/255, 51/255]; 
      3. event.target.textFont = "MyriadPro-Regular";
      4. event.target.textSize = 0;

      }

       

      // On Blur script:

      if (event.target.value=="") {

      1. event.target.value = event.target.defaultValue;
      2. event.target.textColor = color.gray;
      3. event.target.textFont = "MyriadPro-It";
      4. event.target.textSize = 0; // This means Auto

      }