Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Print after form is submitted

Anonymous
Not applicable

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
scottc30727408
Level 2
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.