How to create multiple check boxes under one question

Sriram Pusuluri
Tera Contributor

Hi Team,

 

How to create multiple check boxes under one question

 

Question or label

List any Network Folders access required

below are my check boxes

Accounts

Corp

Cust_Srv

Engineering

HR

IT

other.

 

If I Select Accounts Check Box then, I need to show options Read and Read/Write  CheckBoxes.

Same way for all the remaining.

 

If I select other then I need to show single line text field.

4 REPLIES 4

K Sankalp
Tera Contributor

Hi @Sriram Pusuluri ,

As per requirement you have to create multiple Checkbox type variables with provided options.
You can mark Selection Required = True, to selection became mandatory and checkboxes will clubbed together, also can add Label Variable before this checkboxes.

KSankalp_0-1769340073024.png

 


Use client script/UI policy to populate other (sub)checkbox based on selected checkboxes.

KSankalp_1-1769340214704.png




Kind Regards,
Sankalp


If this response helps you solve the issue, please mark it as the Accepted Solution

@Sriram Pusuluri ,

 

In addition to a previous reply, you can create Single Line text variable and use UI policy to populate when Other checkbox is selected similar to other cases.

 

Kind Regards,
Sankalp


If this response helps you solve the issue, please mark it as the Accepted Solution

Tejas Adhalrao
Tera Guru

Hi @Sriram Pusuluri  ,

This requirement can be achieved using Label variables, Checkbox variables, UI Policies, and onChange Client Scripts.

1) Create a Label variable

Order: 100
Question:
List any Network Folder access required

 

2) create the checkboxes 

 

  • Accounts (Checkbox) – Order: 200

  • Corp (Checkbox) – Order: 210

  • Cust_Srv (Checkbox) – Order: 220

  • Engineering (Checkbox) – Order: 230

  • HR (Checkbox) – Order: 240

  • IT (Checkbox) – Order: 250

  • Other (Checkbox) – Order: 260

 

3)Create access-level checkboxes

Example for Accounts:

  • Accounts – Read (Checkbox) – Order: 201

  • Accounts – Read/Write (Checkbox) – Order: 202

Do the same pattern for all folders:

 

4)

Create UI Policies For each main checkbox:

Condition

  • Accounts = true

Actions

  • Show Accounts – Read

  • Show Accounts – Read/Write

When condition is false:

  • Hide both access checkboxes

same for the all checkboxes,,,,

 

 

5)test each condition 

 

 

 

 

Tejas Adhalrao
Tera Guru

Hi @Sriram Pusuluri ,

 

1) 

Step 1: Create the main checkboxes

Create the below Checkbox variables under the label:

  • Accounts

  • Corp

  • Cust_Srv

  • Engineering

  • HR

  • IT

  • Other

These are the folders the user can select.

 

2)

Create Access Type section (only once)

Create one Label variable:

  • Access Type

Below that, create two checkbox variables:

  • Read

  • Read / Write

Keep this section hidden by default.

 

 

 

 3) Show Access Type when any folder is selected

Use a UI Policy:

Condition:

  • If any one of the folder checkboxes is checked

Action:

  • Show Access Type label

  • Show Read

  • Show Read / Write

If no folder is selected, hide them again.

 

 

4)Validate on submit

Use an onSubmit Client Script:

  • If user selected any folder

  • And did not select Read or Read/Write
    → Show error message
    → Stop submit

This makes sure access type is always selected