- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array - radio and checkbox
- sdp_kc
- Topic Author
- Offline
- New Member
Less
More
4 years 6 months ago - 4 years 6 months ago #189301
by sdp_kc
Array - radio and checkbox was created by sdp_kc
Hi,
I am trying create a table where user can only select one of say 3 options, but there are two other options where they can select none or one of them or all of them e.g
__________________ |RadioButton1 | RadioButton2 | RadioButton2 | Checkbox1 | Checkbox2
Row 1
Row 2
Row 3
Can this be done ?
I am trying create a table where user can only select one of say 3 options, but there are two other options where they can select none or one of them or all of them e.g
__________________ |RadioButton1 | RadioButton2 | RadioButton2 | Checkbox1 | Checkbox2
Row 1
Row 2
Row 3
Can this be done ?
Last edit: 4 years 6 months ago by sdp_kc.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 6 months ago #189302
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array - radio and checkbox
Hi,
yes this can be done.
If there are checkboxes in an array you use the question type "array(numbers)"
Validate the question that the repondent cannot check two of theses options.
Something like:
(sum(Q1_SQ001_X001,Q1_SQ001_X002,Q1_SQ001_X003)<2) and (sum(Q1_SQ002_X001,Q1_SQ002_X002,Q1_SQ002_X003)<2) and (sum(Q1_SQ003_X001,Q1_SQ003_X002,Q1_SQ003_X003)<2) ...
Subquestions of x-axis coded as "X001", "X002", ...
Joffm
yes this can be done.
If there are checkboxes in an array you use the question type "array(numbers)"
Do it exactly as you explained it.where user can only select one of say 3 options
Validate the question that the repondent cannot check two of theses options.
Something like:
(sum(Q1_SQ001_X001,Q1_SQ001_X002,Q1_SQ001_X003)<2) and (sum(Q1_SQ002_X001,Q1_SQ002_X002,Q1_SQ002_X003)<2) and (sum(Q1_SQ003_X001,Q1_SQ003_X002,Q1_SQ003_X003)<2) ...
Subquestions of x-axis coded as "X001", "X002", ...
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
- sdp_kc
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
4 years 6 months ago #189450
by sdp_kc
Replied by sdp_kc on topic Array - radio and checkbox
Thank you.
How do we get checkbox. If i choose array(number), i get dropdown with numbers to select.
How do we get checkbox. If i choose array(number), i get dropdown with numbers to select.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 6 months ago #189451
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array - radio and checkbox
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.