Skip to main content
geurtk3761858
Participant
February 15, 2017
Answered

How can I prevent a form being printed when required fields are not filled out?

  • February 15, 2017
  • 1 reply
  • 563 views

I've made a form with a lot of required fields. But I'm still able to print (cmd p) the form when these fields are not filled out. How can I prevent this? And make a pop-up appear with the massage that all required fields need to be filled out to be able to print the form. I'm using the Dutch version of Acrobat CC.

Thanks in advance!

Geurt

This topic has been closed for replies.
Correct answer try67

You can't prevent someone from printing the file entirely.

What you can do, though, is show an error message when the file is about to be printed, and/or clear the values of the form fields, so it prints as a blank form. To achieve that you can use this script I've developed: Custom-made Adobe Scripts: Acrobat -- Validate Required Fields Before Printing or Saving

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 15, 2017

You can't prevent someone from printing the file entirely.

What you can do, though, is show an error message when the file is about to be printed, and/or clear the values of the form fields, so it prints as a blank form. To achieve that you can use this script I've developed: Custom-made Adobe Scripts: Acrobat -- Validate Required Fields Before Printing or Saving

Known Participant
August 23, 2023

gibts es einen code für nur ein feld und nicht fürs ganze formular hat vieleicht einer einen script