laupaul | Posts: 2

Grouping Checkbox

0 votes
In our document package, there is a questionnaire. There are two checkbox (Yes, No) after each question. I can put a checkbox there, but how can I make it mandatory, saying the user has to select either Yes or No?

Duo_Liang | Posts: 3776

Reply to: Grouping Checkbox

1 votes
Hi laupaul, If you want the user to choose from yes or no, your better choice is to use the radio button. There's an attribute "required" to force user to select. Check below example for a radio button field:
{
   "id":"signer1_group1_radio1",
   "name":"signer1_group1_radio1",
   "type":"INPUT",
   "subtype":"RADIO",
   "page":0,
   "height":15,
   "width":15,
   "left":100,
   "top":100,
   "value":"X",
   "validation":{
      "required":true,
      "enum":[
         "group1"
      ]
   }
}
The "enum" is to regulate the group name, and if you put an "X" value, it means it by default selected. Hope this could help! Duo

laupaul | Posts: 2

Reply to: Grouping Checkbox

0 votes
Hi Duo, Thanks for the prompt reply. It did help.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off