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

How to make a set of check boxes required so that at least one has to be selected?

New Here ,
Aug 26, 2020 Aug 26, 2020

Copy link to clipboard

Copied

Is there a way to make a group of check boxes required so that the user has to check one or more in order to complete the form? My specific need is for a Release of Information document. I want them to select which type of records they're giving us permission to access and there are four options. I want them to select at least one before they can submit the form.

TOPICS
PDF forms

Views

201

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
community guidelines
Community Expert ,
Aug 26, 2020 Aug 26, 2020

Copy link to clipboard

Copied

Yes, you may need to emlpoy some javascripting.

Votes

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
community guidelines
Community Expert ,
Aug 26, 2020 Aug 26, 2020

Copy link to clipboard

Copied

LATEST

This can be achieved using a script. You will either need to use the script to validate all the required fields in the file before continuing to submit it, or you could be a bit tricky and create a hidden text field to copy the value of the check-boxes group. If you set it as required and its default value as "Off" then it will fail the validation when no check-box is ticked.

The calculation script for it is simple:

event.value = this.getField("CheckBoxGroup").valueAsString;

(replace "CheckBoxGroup" with the actual name, of course)

Votes

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
community guidelines