Problem using other response in next question answer.

More
4 years 10 months ago - 4 years 10 months ago #87038 by roman149
roman149 created the topic: Problem using other response in next question answer.
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: 4 years 10 months ago by roman149. Reason: Small fix

Please Log in to join the conversation.

More
4 years 10 months ago #87066 by tpartner
tpartner replied the topic: Problem using other response in next question answer.
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 following user(s) said Thank You: roman149

Please Log in to join the conversation.

More
4 years 10 months ago #87078 by roman149
roman149 replied the topic: Problem using other response in next question answer.
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.

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now