Welcome to the LimeSurvey Community Forum

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

How to get the value stored in "OTHER" field (multiple choice type question)

  • SylvainJack
  • SylvainJack's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 months ago #233680 by SylvainJack
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 3.19.2
Own server or LimeSurvey hosting:
Survey theme/template:
==================
In my multiple choice questions, I add the possibility to choose "OTHER" and then user can type in whatever he/she wants.
I just can't find a way to get the value of the field "OTHER".
The variable has the value "-oth-"....  but how can I get the actuel text ?
Thanks for your help :)

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #233685 by holch

but how can I get the actuel text


What do you mean with that? How you can access the response that respondents have written into this "other"-Field?

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #233688 by holch
For this type of question it is always good to have a look in "Tools" -> "Check logic" of the specific question. There you usually can figure out what it should be.

To access the response given in the other field, you need to use {questioncode_other} for example, which you can see in the logic view of the question.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: SylvainJack

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago - 2 years 2 months ago #233689 by Joffm
Hi,
The manual:
[url] www.limesurvey.org/manual/ExpressionScri...code_variable_naming [/url]

Or by yourself:
Activate the survey, enter some data and have a look at the answer table.
 

Joffm

And do not use the word "multiple choice question"
This is used differently. In some countries it means only "single punch" questions in other "single punch" and "multi punch" questions.
Always refer to the correct LimeSurvey question type.
This because the handling in LimeSurvey is different, too.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 2 months ago by Joffm.
The following user(s) said Thank You: SylvainJack

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #233690 by holch

And do not use the word "multiple choice question"


We can't ask the users to NOT call the question "multiple choice question", if this is the name they have in the Limesurvey GUI:
 

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #233692 by Joffm
You are right, but in LimeSurvey it refers only to "multiple questions".
But @SylvainJack asked about a single question. Only these store the "-oth-"

If I can be sure that "multiple choice" only refers to "multiple" questions, I am happy.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago - 2 years 2 months ago #233703 by holch
Ignore. Should read the response in detail.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 2 years 2 months ago by holch.

Please Log in to join the conversation.

More
2 years 2 months ago #233704 by jelo
Try to add  "shown" to the variable to display the actual content of other.
E.g Q1_other.shown



 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #233705 by holch
But Q1_other.shown should refer to what is written as an answer option, not the response the respondent gave. It is a way to interprete the request from OP, but my guess is, he/she wants to know what the respondents gave as an answer in the other field and this should not be accessed by "Q1_other.shown".

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
2 years 2 months ago #233708 by jelo

 he/she wants to know what the respondents gave as an answer in the other field and this should not be accessed by "Q1_other.shown".

 
That can be the case. But "-oth-" is not fitting it here.

The variable has the value "-oth-"....  but how can I get the actuel text ?

@SylvainJack
Try Questioncode_other or Questioncode_other.shown.

If both are not working as you expect, create a small demo survey and attach the LSS export here.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: SylvainJack

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose