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

Required Response Needed for Each Group of Checkboxes Before Form Submits

New Here ,
Mar 29, 2016 Mar 29, 2016

Hi Everyone,

I've looked at multiple postings and none of them seem to give me exactly what I need, so now I'm posting for help please.

I have a form that contains 25 rows of questions with associated groups of checkboxes to answer by the recipients. I need to make it a requirement so that ONE of the checkboxes are marked for each of the questions before they can submit the form.

See my screen shot below:

For example, in the first orange row all 3 checkboxes are titled "PAIN" with export values of: "YES", "NO", and "UNSURE".

On the second row, all 3 checkboxes are titled, "1" with export values of: "YES", "NO", and "UNSURE".

Third row and on just keep going in the same manner. Each row share the same title and have the export values as mentioned above.

Is there a script I can use so that the recipients are required to select 1 checkbox from each group/row before they will be allowed to submit their form?

Also, if you can provide the script I would use (if that's the solution), please let me know where I would enter that script (i.e. - as a mouse up action item, or a document script, etc.). I'm still learning these steps and need instructions on them.

If it's needed, I'm using Adobe Acrobat 9 Pro

Thanks in advance for anyone that can help!!

TOPICS
Acrobat SDK and JavaScript
802
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

correct answers 1 Correct answer

Community Expert , Mar 29, 2016 Mar 29, 2016

The script is meant to replace your current Submit Form command.

To specify multiple recipients you can add them to the cTo parameter, delimited by semi-colons, like this:

} else this.mailDoc({cTo: "me@server.com;john@server.com;kelly@server.com"});

Translate
Community Expert ,
Mar 29, 2016 Mar 29, 2016

I answered pretty much exactly the same question yesterday: Multiple Checkboxes - AT LEAST one required

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 ,
Mar 29, 2016 Mar 29, 2016

Hi try67‌

Thank you for reply and I see your thread and still have some questions please.

You suggested the following; however I don't know if I need to enter that script into each checkbox "mouse up" action, or where do I use this?

Also, each of the checkboxes also have a script mouse-up action to highlight a certain color when selected. (I don't know if that makes a difference or not when adding the below)

And I have my "SUBMIT" button setup so that it is email to 4 different people when clicked.

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 ,
Mar 29, 2016 Mar 29, 2016

The script is meant to replace your current Submit Form command.

To specify multiple recipients you can add them to the cTo parameter, delimited by semi-colons, like this:

} else this.mailDoc({cTo: "me@server.com;john@server.com;kelly@server.com"});

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 ,
Mar 29, 2016 Mar 29, 2016

Okay,

So I replaced my "SUBMIT Form" action with your script above and it's definitely showing a pop-up window when I try to submit the form indicating the fields marked as "required" haven't been completed.

But it's not including any of the checkbox groups in the rows/columns in bottom half of my form.

Do I need to do something to the checkboxes to so that they're included in this requirement? Should I mark all of them as required? The reason I ask is because I thought that if I marked all the checkboxes as "required", then wouldn't it require the recipient to select them all before submitting the form?

Sorry if these are dumb, obvious questions - I'm still learning here.

I've saved a screenshot below of what I"m getting: As you can see, I didn't check any of the checkboxes, and when I hit SUBMIT, the only fields it is still requiring me to answer are the text fields at the top of the form.

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 ,
Mar 29, 2016 Mar 29, 2016
LATEST

Hi try67‌

Never mind on my last question - I didn't realize I needed to mark all the checkboxes are "required" (thought it would produce a different outcome).

Everything works perfectly!

Thank you again for all your help and patience

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