Skip to main content
Participant
March 20, 2018
Question

PDF form to print using Javascript required fields

  • March 20, 2018
  • 1 reply
  • 528 views

I created a PDF form, and some fields are required. Once my co-workers fill out the form they must print it and sign it. The problem is, some of them avoid the required fields and go straight to print the form.

I was wondering if there's a JavaScript to set the print button to not let users print unless they have fill out the required fields?

Or at least get a message warning saying they need to fill out those fields.

Thank you

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
March 20, 2018

You can't prevent the file from being printed entirely, but you can show an error message, either on the file itself or in an alert window, and it's even possible to force the file to print without any form data. See this tool I've developed, exactly for this purpose: Custom-made Adobe Scripts: Acrobat -- Validate Required Fields Before Printing or Saving