Highlighted

Run actions in order

New Here ,
Sep 14, 2020

Copy link to clipboard

Copied

I've created a PDF form with a submit button that will email a completed form to a specified address. I have also incorporated a check box that requires members to acknowledge prior to submission that will prompt an alert if the box isn't checked when they hit the submit button.

 

Additionally, I have added a menu action to close the page after the user hits submit. However, the page's behaviour currently is to close the PDF regardless after the alert for non-acknowledgement pops up.

 

Is there a way to stop the "close PDF" action from completing unless the javascript that submits the form successfully runs?

 

Thanks.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

No. You have to do it all in a single script. Then you could add conditional statements and control the order in which the commands are executed.

TOPICS
Create PDFs

Views

35

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Run actions in order

New Here ,
Sep 14, 2020

Copy link to clipboard

Copied

I've created a PDF form with a submit button that will email a completed form to a specified address. I have also incorporated a check box that requires members to acknowledge prior to submission that will prompt an alert if the box isn't checked when they hit the submit button.

 

Additionally, I have added a menu action to close the page after the user hits submit. However, the page's behaviour currently is to close the PDF regardless after the alert for non-acknowledgement pops up.

 

Is there a way to stop the "close PDF" action from completing unless the javascript that submits the form successfully runs?

 

Thanks.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

No. You have to do it all in a single script. Then you could add conditional statements and control the order in which the commands are executed.

TOPICS
Create PDFs

Views

36

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 14, 2020 0
Most Valuable Participant ,
Sep 15, 2020

Copy link to clipboard

Copied

No. You have to do it all in a single script. Then you could add conditional statements and control the order in which the commands are executed.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 15, 2020 0