Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Fillable Fields

New Here ,
Sep 19, 2017 Sep 19, 2017

Hello,

I am running Adobe Acrobat DC on a Mac Book Pro, and am trying to figure out a feature with no success. Currently I have the fillable fields set up so the instructional text shows, and disappears when you click on the field. The user can type the information they want and once done print the document with success. Currently I am accomplishing this by using a java script from this site:

Is there a way to add instructional text to my text field that will disappear when clicked? (PDF For...

Currently, what is happening is when a user does not fill out a field, the instructional text is printed on the form. What I would like is for the fields that are not filled out, to be printed as blank. I have tried clicking show on PDF but do not print, this however, causes the filled out text in those fields to not print as well. Is there a way to make this happen? Let me know if this makes sense. Thanks!

TOPICS
Create PDFs
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Sep 19, 2017 Sep 19, 2017
LATEST

This can be done by expending the code provided in that thread and adding a command to make the field visible but not printable if it has the default value. For example, using the code I provided there it can be done like this:

// On Blur script:

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

    event.target.value = event.target.defaultValue;

    event.target.textColor = color.ltGray;

    event.target.display = display.noPrint;

} else event.target.display = display.visible;

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 19, 2017 Sep 19, 2017
LATEST

This can be done by expending the code provided in that thread and adding a command to make the field visible but not printable if it has the default value. For example, using the code I provided there it can be done like this:

// On Blur script:

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

    event.target.value = event.target.defaultValue;

    event.target.textColor = color.ltGray;

    event.target.display = display.noPrint;

} else event.target.display = display.visible;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines