- Posts: 38
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Drop box
- adridg
- Topic Author
- Offline
- Junior Member
Less
More
6 years 6 months ago #159693
by adridg
Drop box was created by adridg
I have a drop box question with numbers as answer.
Each number is related to a person´s name.
I want that, when a number is choosen in the drop box list, the name related will appear.
Is that possibel?
Thanks
Each number is related to a person´s name.
I want that, when a number is choosen in the drop box list, the name related will appear.
Is that possibel?
Thanks
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
- adridg
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
6 years 6 months ago #159703
by adridg
Replied by adridg on topic Drop box
Could it be in the same question, but not in the drop box. Like an text with the name.
Or in the next question. Wuld be like an validation, if the person choose the correct number.
I hope now is clear...
Or in the next question. Wuld be like an validation, if the person choose the correct number.
I hope now is clear...
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
6 years 6 months ago #159715
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Drop box
Hello, aldridg,
Always the same: The Buzzword is "Tayloring".
manual.limesurvey.org/Expression_Manager...swers.2C_and_Reports
Just include in the question text something like this:
{if(Q1==1,"Hi, Angela, nice to see you",if(Q1==2,"Hi, Bert, nice to see you",if(Q1=,"Hi, Carmen, nice to see you",if(Q1==4,"Hi, Dan, nice to see you",if(Q1==5,"Hi, Eileen, nice to see you",if(Q1==6,"Hi, Fred, nice to see you",""))))))}
and then
Of course you are free to include this in a different page.
Always the same: The Buzzword is "Tayloring".
manual.limesurvey.org/Expression_Manager...swers.2C_and_Reports
Just include in the question text something like this:
{if(Q1==1,"Hi, Angela, nice to see you",if(Q1==2,"Hi, Bert, nice to see you",if(Q1=,"Hi, Carmen, nice to see you",if(Q1==4,"Hi, Dan, nice to see you",if(Q1==5,"Hi, Eileen, nice to see you",if(Q1==6,"Hi, Fred, nice to see you",""))))))}
and then
Of course you are free to include this in a different page.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: adridg
The topic has been locked.
- adridg
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
6 years 6 months ago #159975
by adridg
Replied by adridg on topic Drop box
I did this, but apparently i´m missing something:
when i did with the first question as drop box, the names did not appear.
when I change the drop box question to short free text, it works
what am i doing wrong?
thank you
when i did with the first question as drop box, the names did not appear.
when I change the drop box question to short free text, it works
what am i doing wrong?
thank you
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
6 years 6 months ago #159976
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Drop box
Hello, adridg,
where is your sample survey?
How can we know what you are doing wrong or what you are missing?
Best regards
Joffm
where is your sample survey?
How can we know what you are doing wrong or what you are missing?
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- adridg
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
6 years 6 months ago - 6 years 6 months ago #159980
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Drop box
Hello, adridg,
Your test was against the text of the answer option.
But you must test against the code.
Or if you want to use the matricula, you have to test:
The explanation you find - as usual - in the manual:
manual.limesurvey.org/Expression_Manager#Access_to_Variables
Best regards
Joffm
Your test was against the text of the answer option.
But you must test against the code.
Code:
{if(Matr=="A1","ADALBERTO MARTINS",if(Matr=="A2","ÁLVARO ALVES NÔGA",if(Matr=="A3","BEATRIZ DE LIMA PEREIRA","")))}
Or if you want to use the matricula, you have to test:
Code:
{if(Matr.shown=="45446","ADALBERTO MARTINS",if(Matr.shown=="66818","ÁLVARO ALVES NÔGA",if(Matr.shown=="66834","BEATRIZ DE LIMA PEREIRA","")))}
The explanation you find - as usual - in the manual:
manual.limesurvey.org/Expression_Manager#Access_to_Variables
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 6 years 6 months ago by Joffm.
The following user(s) said Thank You: adridg
The topic has been locked.