Welcome to the LimeSurvey Community Forum

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

Inserting participants' text answer to the previous question in a radio question

  • vimarie
  • vimarie's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 days 6 hours ago #270663 by vimarie
Please help us help you and fill where relevant:
LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey Cloud:
Survey theme/template:
==================
(Write here your question/remark)Please help us help you and fill where relevant: 
LimeSurvey version: 6.12.4+250408
Own server or LimeSurvey Cloud: 
Survey theme/template: fruity
==================
Hi,

I am wondering if it is possible to take participants' answers from a multiple short text question like this one :

and put them as anchors for a radio button question, like this :

I assume that, if it is possible, I have to edit the question using Expression Script but I have no idea how it should look like and where to put the code (is it in the "script" tab of the question or in the "condition" tab of the question's general settings ?). 

I thank you in advance for your answer and your help !
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 days 5 hours ago - 4 days 5 hours ago #270665 by Joffm
Hi,
please read the manual
[url] www.limesurvey.org/manual/ExpressionScri...#Access_to_variables [/url]

Here you see this:
Qcode.code:     the selected response code for the question if it is relevant (otherwise blank), or the text value if it is not a coded question
and
Qcode:     an alias for Qcode.code

As your question is not a coded question, but "multiple short text" Qcode returns the text.
This is what you want.

Meaning:
In your semantic differential you have (of course depending on your codes)
the left side as {Q1_SQ001}
the right side as {Q1_SQ002}
 
 

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 days 5 hours ago by Joffm.
The following user(s) said Thank You: vimarie

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose