- Posts: 103
- Thank you received: 5
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Get x- and y-labels from array (numbers) questions with checkbox layout
- socius
- Topic Author
- Offline
- Premium Member
Less
More
6 years 7 months ago - 6 years 7 months ago #157752
by socius
Get x- and y-labels from array (numbers) questions with checkbox layout was created by socius
Dear all,
I am trying to get the (x and y) answer texts of an multiple numeric array question ("array (numbers)" with checkbox layout). I'd like to combine x and y answers in the question text of a later question.
Is there a (simple) way to achieve this? With question1_1_1.shown etc. I only get "1" or empty - depending on the answer (Checkbox on/off), but not the labels on the side. Is there a way to get these array labels with a method like .shown?
I use Limesurvey 2.6.4 - and hope I did not overlook anything in the EM documentation and the Forum.
I attach the question group and a screenshot visualizing the problem.
Thanks a lot for help and hints!
Best, G
I am trying to get the (x and y) answer texts of an multiple numeric array question ("array (numbers)" with checkbox layout). I'd like to combine x and y answers in the question text of a later question.
Is there a (simple) way to achieve this? With question1_1_1.shown etc. I only get "1" or empty - depending on the answer (Checkbox on/off), but not the labels on the side. Is there a way to get these array labels with a method like .shown?
I use Limesurvey 2.6.4 - and hope I did not overlook anything in the EM documentation and the Forum.
I attach the question group and a screenshot visualizing the problem.
Thanks a lot for help and hints!
Best, G
Attachments:
Last edit: 6 years 7 months ago by socius. Reason: typo in title
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
6 years 7 months ago #157762
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Get x- and y-labels from array (numbers) questions with checkbox layout
As far as I know, those variables are not available in Expression Manager. You will need to hard-code the text values.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- socius
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 103
- Thank you received: 5
6 years 7 months ago #157779
by socius
Replied by socius on topic Get x- and y-labels from array (numbers) questions with checkbox layout
Hi Tony,
thanks for your quick reply! I will hard-code the text.
I think a feature like this might be very useful in some cases - to grab the x- and y-questions/labels in arrays with something like .shownx, .showny. I'll add this to my wishlist.
Thanks again!
Best, G
thanks for your quick reply! I will hard-code the text.
I think a feature like this might be very useful in some cases - to grab the x- and y-questions/labels in arrays with something like .shownx, .showny. I'll add this to my wishlist.
Thanks again!
Best, G
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
6 years 7 months ago #157805
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Get x- and y-labels from array (numbers) questions with checkbox layout
Yes, in theory, it should be something like:
- manual.limesurvey.org/Expression_Manager#Access_to_Variables
Code:
{Q1_X001.question}
Code:
{Q1_Y001.question}
- manual.limesurvey.org/Expression_Manager#Access_to_Variables
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.