- Posts: 41
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Display text inside other option during insertion
- jackuars
- Topic Author
- Offline
- Senior Member
Less
More
6 years 2 months ago - 6 years 2 months ago #163352
by jackuars
Display text inside other option during insertion was created by jackuars
Q1. What kind of position are you applying for? [Option "[b]Other[/b]" is turned on]
a. Operations
b. Marketing
c. Finance
d. Other [comment box] - (This is the checked option and the person fills Programming inside the comment box)
Q2. How many years of experience do you have in -oth-?
a. less than 1 yr
b. more than 1 yr
Currently when I run the survey Q2. is displayed as "How many years of experience do you have in -oth-"
Instead of -oth- it should display as anything they write in the comment box of Other in Q1.
Q2. How many years of experience do you have in Programming?
and not
Q2. How many years of experience do you have in -oth-?
How do I set it up like this?
a. Operations
b. Marketing
c. Finance
d. Other [comment box] - (This is the checked option and the person fills Programming inside the comment box)
Q2. How many years of experience do you have in -oth-?
a. less than 1 yr
b. more than 1 yr
Currently when I run the survey Q2. is displayed as "How many years of experience do you have in -oth-"
Instead of -oth- it should display as anything they write in the comment box of Other in Q1.
Q2. How many years of experience do you have in Programming?
and not
Q2. How many years of experience do you have in -oth-?
How do I set it up like this?
Last edit: 6 years 2 months ago by jackuars.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2738
6 years 2 months ago #163356
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Display text inside other option during insertion
A similar question has just been answered this week I think. Can't remember the exact code.
What code are you using currently?
Maybe this helps: manual.limesurvey.org/Expression_Manager#Qcode_Variable_Naming
to find out how to access variables it is always helpful to look at the survey logic file.
What code are you using currently?
Maybe this helps: manual.limesurvey.org/Expression_Manager#Qcode_Variable_Naming
to find out how to access variables it is always helpful to look at the survey logic file.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10102
- Thank you received: 3589
6 years 2 months ago #163358
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Display text inside other option during insertion
Code:
{Q1_other}
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- jackuars
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 0
6 years 2 months ago #163382
by jackuars
Replied by jackuars on topic Display text inside other option during insertion
Hi, i'm still confused.
If you code it as
a. How many years of experience do you have in {Q1_other} it would only take insertion from other right? What if they selected another option in Q1?
Or do we have to create 2 different questions as Q2_a and Q2_b, one for normal options and one for the other option?
If you code it as
a. How many years of experience do you have in {Q1_other} it would only take insertion from other right? What if they selected another option in Q1?
Or do we have to create 2 different questions as Q2_a and Q2_b, one for normal options and one for the other option?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 2 months ago #163383
by jelo
Compare this thread (which holch already mentioned) and look at Tony's post
www.limesurvey.org/forum/can-i-do-this-w...orrect-syntax#163194
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Display text inside other option during insertion
You can use a if clause. if other is empty, you display Q1.jackuars wrote: How many years of experience do you have in {Q1_other} it would only take insertion from other right? What if they selected another option in Q1?
Compare this thread (which holch already mentioned) and look at Tony's post
www.limesurvey.org/forum/can-i-do-this-w...orrect-syntax#163194
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.