- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I INSERTAN a value from Other (please, sepecify) text field?
- Adrien12345
- Topic Author
- Offline
- New Member
Less
More
4 years 2 months ago #193815
by Adrien12345
Can I INSERTAN a value from Other (please, sepecify) text field? was created by Adrien12345
(I am on Limesurvey Version 3.21.6+200121)
Hi everyone !
So I have question Q5 that is a multiple answer question with an "other, please specify" option.
I would like to insert the answer from this question into Q6 question text.
So I use the fonction INSERTANS as follow:
Q6 question text + {INSERTANS:875715X735X71091} {INSERTANS:875715X735X71092} {INSERTANS:875715X735X7109other}
It works with the predefined answers, but not with the "other, please specify" answer.
with {INSERTANS:875715X735X7109other}, I just get "Other" instead of the text.
Can someone help me with this ?
Kind regards,
Adrien
Hi everyone !
So I have question Q5 that is a multiple answer question with an "other, please specify" option.
I would like to insert the answer from this question into Q6 question text.
So I use the fonction INSERTANS as follow:
Q6 question text + {INSERTANS:875715X735X71091} {INSERTANS:875715X735X71092} {INSERTANS:875715X735X7109other}
It works with the predefined answers, but not with the "other, please specify" answer.
with {INSERTANS:875715X735X7109other}, I just get "Other" instead of the text.
Can someone help me with this ?
Kind regards,
Adrien
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10116
- Thank you received: 3597
4 years 2 months ago - 4 years 2 months ago #193816
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 Can I INSERTAN a value from Other (please, sepecify) text field?
Try an Expression Manager variable:
Or:
Code:
{Q5_other}
Or:
Code:
{Q5_other.shown}
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 2 months ago by tpartner.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13010
- Thank you received: 4002
4 years 2 months ago - 4 years 2 months ago #193823
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Can I INSERTAN a value from Other (please, sepecify) text field?
Instead of using the INSERTANS stuff, just use Expression Manager
{list(Q1_SQ001.shown,Q1_SQ002.shown,Q1_SQ003.shown,Q1_SQ004.shown,Q1_SQ005.shown,Q1_other)}
Or even shorter:
{list(that.Q1.sq_SQ.shown,Q1_other)} if your subquestions are default coded "SQxxx". Otherwise adapt.
Read about "that" here:
manual.limesurvey.org/Expression_Manager....22that.22_variables
Joffm
{list(Q1_SQ001.shown,Q1_SQ002.shown,Q1_SQ003.shown,Q1_SQ004.shown,Q1_SQ005.shown,Q1_other)}
Or even shorter:
{list(that.Q1.sq_SQ.shown,Q1_other)} if your subquestions are default coded "SQxxx". Otherwise adapt.
Read about "that" here:
manual.limesurvey.org/Expression_Manager....22that.22_variables
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 2 months ago by Joffm.
The following user(s) said Thank You: cdorin
The topic has been locked.
- Adrien12345
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
4 years 2 months ago #193824
by Adrien12345
Replied by Adrien12345 on topic Can I INSERTAN a value from Other (please, sepecify) text field?
{Q5_other} worked perfectly, thank you !!
The topic has been locked.