Skip to main content
Known Participant
January 9, 2021
Question

Check Everything On Print

  • January 9, 2021
  • 3 replies
  • 541 views

I am working on an evidence submission form for my PD.  I have looked at the different posts regarding checking to make sure certain boxes are checked before printing / saving the document.

This is what I am trying to accomplish at the moment.

 

I have (6) check boxes (Check Box1, Check Box2, etc) that need at least one of them to be checked when the form is printed.

I tried using multiple statements and tying them together with &&.

 

I usually can figure out my solutions when I have a good piece of code to start off on, but I can't find anything that really makes sense.

 

By the way, if there is an error message I don't want the printing to continue.  I am using a print button with the code added in.

 

Thank you in advance for your help.

This topic has been closed for replies.

3 replies

JR Boulay
Community Expert
Community Expert
January 11, 2021

I have the impression that it is not clear to everyone: you can stop a file from being printed or saved, but only if the end user uses your "Print" or "Save" button.

Otherwise (if he is using a shortcut or the File menu) you can only display an alert message that does not interrupt the process.

Acrobate du PDF, InDesigner et Photoshopographe
Legend
January 9, 2021

You can't stop a file from being printed or saved. You can put out a message, but not stop the action. Thank goodness.

Known Participant
January 10, 2021

Is there a way to stop it from moving to the print unless everything checks out?

 

Legend
January 10, 2021

If you add a button to print on the page, you can certainly stop that button from printing, and put out a message instead. But you CANNOT stop printing, for example if someone does Ctrl+P.

Bernd Alheit
Community Expert
Community Expert
January 9, 2021

Where is the print button?

Known Participant
January 10, 2021

Bottom right hand corner.  I haven't labeled it yet.

Bernd Alheit
Community Expert
Community Expert
January 10, 2021

Where does you print at this button?

The script at this button doesn't use any print function.