8 Replies Latest reply on Mar 8, 2011 5:01 AM by ultrasteve

    Making form fields print ONLY when data has been entered?

    ultrasteve

      Hi all.

       

      I have a fillable PDF, and have used the following script to make text be present in the field but when clicked on, it disappears and the entered text replaces it.

       

      // If field is blank, display this text

      if (!event.value) event.value = "ENTER NAME HERE";

       

      All fields on the page are set with a default value like this, but some will not always need text entered into them - how can I set the document up so that it only prints fields when a user has entered data? At present it will print the 'ENTER NAME HERE' text if you don't fill it in!

       

      Thanks.