Skip to main content
Participant
July 14, 2022
Question

Message box if checkbox is checked when hitting "Submit" button

  • July 14, 2022
  • 2 replies
  • 453 views

Hi,

 

I'm building a form that has checkboxes for "Yes" and "No" and a submit button that sends the form to an email address.  This is what I want to happen:

 

Click the submit button.

If the "Yes" checkbox is selected, a popup message will say, "Please attach supporting documents to the email."  Otherwise, it just generates the email.

 

The name of the checkbox is "Yes" and the name of the button is "Submit".  I'm new to js, and I haven't been able to find the coding (or figure it out enough to modify it, I guess) to do this.

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
July 14, 2022

So if the Yes checkbox is ticked it should not submit the form?

Amal.
Legend
July 14, 2022

Hi there

 

Hope you are doing well and thanks for reaching out.

 

The workflow you are trying to achieve is might be possible using JavaScript. For more information please check the help pages listed below:

https://acrobatusers.com/tutorials/javascript_console/

https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html

 

Hope it will help

 

Regards

Amal

try67
Community Expert
Community Expert
July 14, 2022

They know that already. This canned response is not very helpful...