Please help us help you and fill where relevant:
Your LimeSurvey version: Version 3.24.2
Own server or LimeSurvey hosting: University-affiliated server (cannot edit theme or use scripts)
Survey theme/template: University default
==================
Hi, I am currently creating a survey as part of my research, however, the exclusive option is preventing my code from working.
The University does not give access for me to use CSS or Javascript scripts, so I'm restricted to using only coding within the question stem itself.
My goal with this question (GEW2) is to have participants select as many options as they would like, and their responses will fill in the blank within the question stem (e.g., "When I am upset, I, typically, _____" and their responses would create a list). The code I have been using so far works great.... until I set an exclusive option for an option that would contradict the rest (e.g., "do nothing"). When this option is selected, I want the question stem to act as it does with the other options (e.g., "When I am upset, I, typically, do nothing.") but once I set it as exclusive, it stops working. I noticed that when I set it to exclusive and the option is selected, part of the question stem seems to disappear (specifically, it seems to default to "__." which is no where in the question stem or coding).
I'm wondering if anyone knows a way to call upon response to the exclusive option?
The code I have been using is:
{if(count(that.GEW2.NAOK)>0,join(if(!is_empty(GEW2_other),join(", _",GEW2_other)),if(!is_empty(GEW2_A1),join(", _", GEW2_A1.shown)),if(!is_empty(GEW2_A2),join(", _",GEW2_A2.shown)),if(!is_empty(GEW2_A3),join(", _", GEW2_A3.shown)),if(!is_empty(GEW2_A4),join(", _",GEW2_A4.shown)),if(!is_empty(GEW2_A5),join(", _",GEW2_A5.shown)),if(!is_empty(GEW2_A6),join(", _",GEW2_A6.shown)),if(!is_empty(GEW2_A7),join(", _",GEW2_A7.shown)),if(!is_empty(GEW2_A9),join(", _",GEW2_A9.shown)),if(!is_empty(GEW2_A10),join(", _",GEW2_A10.shown)),if(!is_empty(GEW2_A11),join(", _",GEW2_A11.shown)),if(!is_empty(GEW2_A12),join(", _",GEW2_A12.shown)),if(!is_empty(GEW2_A8),join(", _",GEW2_A8.shown))),", ______")}.
(note that the bolding and underlines are to indicate to the participant that those are the parts of the sentence that the participant has filled in with their selection(s))
To summarize what it does, it checks to see if any responses have been selected for the question, and if they have, it goes through each response option and determines whether it was selected or not. If it has been, it adds a comma followed by an underline and the response option so that a list is created. However, for some reason, once A8 is set to my exclusive option, it fills in the response as "__.". I do not know where it gets that from as it appears no where in the question stem or in the code, so I'm wondering if it's some type of bug.
Any help is greatly appreciated!