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

I want the default values in a form set to not printing.

New Here ,
Nov 29, 2016 Nov 29, 2016

I want the default values in a form set to not printing. That way if users want to fill out the form with pen, they can simply print it.

How should I do this?

Thanks! Martine

TOPICS
Acrobat SDK and JavaScript , Windows
291
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 ,
Nov 29, 2016 Nov 29, 2016
LATEST

Add this to the Custom Format Script. It will change the field printing property when the user enters data or the form is reset. But be sure to reset the form before distributing.

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

    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