Expand my Community achievements bar.

Print after form is submitted

Avatar

Former Community Member

Hello,

I'm trying to create a form with a unique feature of having the user see the print buttom feature only after they have submitted the form. I currently have the form set up with both buttons viewable onscreen where I only want the print button to show up after they submitted the form.

Thanks,

Alicia

1 Reply

Avatar

Level 2

You can make a print button and make it hidden. On the post submit event add:

Print.Button.rawValue.presence = "visible";

this will make the print button show up after the form is submitted.

If you are trying to disable printing altogether before submission you will need a few more scripts in places.

In the preprint event, add this script

(

if

Print.button.presence = "hidden";

then

xfa.event.cancelAction = 1

endif

this should cause an error message saying print cancelled if the user presses ctrl+p or goes to File>print unless the print button is visible which wont happen until the form is submitted.