Welcome to the LimeSurvey Community Forum

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

Different answer options per survey participant

More
1 month 3 weeks ago #271342 by frederik_plum
I'm creating a questionnaire for multiple schools. For a multiple-choice question, I want to display different (and sometimes the same) answer options for each school. I want the schools to receive a unique access link or code that will automatically show them the correct set of answer options. After hours of discussing this with Gemini without a solution, I'm now asking here.

Please Log in to join the conversation.

More
1 month 3 weeks ago - 1 month 3 weeks ago #271345 by tpartner
Assuming you don't want to use tokens, you can insert a hidden question for the school ID and preload it using GET parameters in the survey URL - www.limesurvey.org/manual/URL_fields/en

Having done that, simply filter the possible answers with sub-question relevance.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 month 3 weeks ago by tpartner.

Please Log in to join the conversation.

More
1 month 3 weeks ago #271350 by holch
I think tokens would be the way to go. You can create custom attributes in the token table that you can call from throughout the survey and use in conditions and subquestion relevance to hide and show questions / subquestions.

Unfortunately there is no "answer option relevance" for single choice questions, in this case you would have to go through a construct of multipunch questions and the array filter.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
1 week 6 days ago #272645 by roblej
Yes, Holch points the way to solving this problem. New attributes must be created for users, and the questions must indicate to which users with which specific attributes should be displayed.

We create a ‘profile’ attribute for users and specify in each question to which profiles should be visible.

In this case, for profiles 0 and 110:

Condition: ((TOKEN:ATTRIBUTE_2 == ‘profile0’)) or ((TOKEN:ATTRIBUTE_2 == ‘profile110’))

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose