Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Array - radio and checkbox

  • sdp_kc
  • sdp_kc's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago - 5 years 1 month 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 ?
Last edit: 5 years 1 month ago by sdp_kc.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #189302 by Joffm
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)"

where user can only select one of say 3 options

Do it exactly as you explained it.
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
The topic has been locked.
  • sdp_kc
  • sdp_kc's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month 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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #189451 by Joffm
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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose