Skip to main content
Newcomer
Feb 16, 2024 5:53 PM UTC
Question

Checkbox Tab Group

I’m attempting to make one of two checkboxes required.  This is my json:

  "checkboxTabs": [
    {
      "anchorIgnoreIfNotPresent": "true",
      "anchorString": "InsurerRequired_CKYes",
      "anchorUnits": "pixels",
      "anchorXOffset": "0",
      "anchorYOffset": "0",
      "tabId": "InsurerRequired_CKYes",
      "tabLabel": "Insurer Required",
      "tabGroupLabels": [
        "checkboxgroup1"
      ]
    },
    {
      "anchorIgnoreIfNotPresent": "true",
      "anchorString": "InsurerRequired_CKNo",
      "anchorUnits": "pixels",
      "anchorXOffset": "0",
      "anchorYOffset": "0",
      "tabId": "InsurerRequired_CKNo",
      "tabLabel": "Insurer Not Required",
      "tabGroupLabels": [
        "checkboxgroup1"
      ]
    }
  ],
  "tabGroups": [
    {
      "groupLabel": "checkboxgroup1",
      "minimumRequired": "1",
      "maximumAllowed": "1",
      "tabType": "tabgroup"
    }
  ]
 

The behavior is not changing with the tabGroups definition.  Both checkboxes are still optional, and both checkboxes can be selected.  I would appreciate any insight!

I did attempt to create radio buttons, but I got a runtime error.

 

3 replies

Active Voice
Feb 16, 2024 6:13 PM UTC

I would not pair the check boxes. Create them one by one. And when you have the one you want required then use the validation option and put “select at least 1” This will not allow the recipient to finish the document unless they select it. You can also make it a read only and check it for them. Hopefully that makes sense and I understand your question. 

Translate
Newcomer
Feb 16, 2024 9:04 PM UTC

The user must select one and only one of the checkboxes.  Either is okay.  The answer controls behavior of subsequent form fields.  I added “groupRule”: “SelectAtLeast” to the json, but the behavior didn’t change.

Translate
Newcomer
Nov 8, 2024 11:31 AM UTC

Did you manage to fix this issue?

Translate