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
  • Adrien12345's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #193815 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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago - 4 years 2 months ago #193816 by tpartner
Try an Expression Manager variable:

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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago - 4 years 2 months ago #193823 by Joffm
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

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
  • Adrien12345's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #193824 by Adrien12345
{Q5_other} worked perfectly, thank you !!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose