Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Mandatory check box before form submission

New Here ,
Jun 19, 2023 Jun 19, 2023

Hello!

 

I have a PDF form that clients will fill out with their details. 

A checkbox is required to be checked to agree to the terms and conditions. Finally, a send button that submits the form to an email address. Currently, the submit button negates the checkbox.

 

I know that some javascript is required for this to work as intended. I've gone through multiple forums to find the correct scripting but I've had no luck getting this to work.

 

Ideally, it needs to check the form to make sure that this checkbox is checked, if not a message pops up, if checked it will submit the form.

 

Thanks in advance

TOPICS
JavaScript , PDF forms
456
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 19, 2023 Jun 19, 2023

Do you use a built-in submit function or a script to submit the form?

You can use script, first check that checkbox is checked if yes submit form if not give alert.

Here is an example how to use script:

https://acrobatusers.com/tutorials/submitting-data/ 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 25, 2023 Jun 25, 2023
LATEST

Yes I was using the inbuilt submit function. I manged to get it to work using ChatGPT to write me the correct javascript. 

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