These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to allow a form to be printed only after ALL fields are complete?

maykay
Registered: Mar 16 2009
Posts: 5

I'm pretty new to creating forms on both Acrobat and LiveCycle and I need help! I don't have much experience in LiveCycle or JavaScript but I'm willing to try it out and learn.

The form I'm creating requires the user to print the completed form and sent to us. What I'm trying to do is find a way to have the form check if all the fields are completed; and if so, then it will print. If not all fields are complete, the form shouldn't print.

I've found codes on previous posts and sites which will validate if all fields have a value but it's not linked to print if all the fields are complete.

Ultimately what I'm looking for is if there is a code that if the user clicks the Print button on the form, and not all the fields are complete, the form won't print.

Thank you!

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You can not. You can only modify the form before printing with the 'will print' action because there is noway to switch the print menu option 'on' or 'off' security restriction with a script.

George Kaiser

maykay
Registered: Mar 16 2009
Posts: 5
Is there a way to use a button and a code to do the validation then print as opposed to using the existing print button?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Yes, but the PDF print button and the menu item 'File => Print' will still work so a custom print field button is next to useless.

George Kaiser