Welcome, Guest
Username: Password:

TOPIC: Problem using other response in next question answer.

Problem using other response in next question answer. 3 years 7 months ago #87038

  • roman149
  • roman149's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
What I have:
(scroll down to picture)
I have question empl_qt which is of a type Radio-Button List.
This question has allowed option other.

I have another question comp_qt also Radio-Button List

What I want:
I want to use selected response from empl_qt in a posible response to comp_qt.

What I do:
In the possible response I use expression:
{if(empl_qt==empl_qt_other,INSERTANS:12813X1X2other,INSERTANS:12813X1X2)}
or
{if(empl_qt==empl_qt_other,empl_qt_other,INSERTANS:12813X1X2)}

Just to test posibilities I used the EM editor to insert the code of other into question as this
{INSERTANS:12813X1X2other}

What I get:
While in question the replacement shows the value inserted in the textfield of other, in the response the same expression shows just text "Other:".
With the normal responses SGQA identifier works (the SGQ identifier doesn't).

For illustration of the issue please see the screenshot below.

What am I missing? Why I don't get the other content in the possible response?



Picture explanation: The answer to question empl_qt was other/8. In question you can see number 8. While in possible answer is "Other:".

I am using the www.limeservice.com , which I believe is running the version 1.92+.

PS: LimeSurvey somehow detected that my native language is Czech, so it translates everything in Czech. So in this question I retranslated all back to English. I'm sorry if I translated something wrong.
Last Edit: 3 years 7 months ago by roman149. Reason: Small fix
The administrator has disabled public write access.

Problem using other response in next question answer. 3 years 7 months ago #87066

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5909
  • Thank you received: 1296
  • Karma: 522
Try:
{if(empl_qt_other.shown, empl_qt_other.shown, empl_qt.shown)}
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: roman149

Problem using other response in next question answer. 3 years 7 months ago #87078

  • roman149
  • roman149's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Yeah. That's it! Thanks.

I tried the property .shown in then and else statements, but I didn't get the idea to put the same in condition.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 1.004 seconds