- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array Filter with Short free text & Single Choice
- Niki
- Topic Author
- Offline
- New Member
Less
More
8 years 9 months ago #120635
by Niki
Array Filter with Short free text & Single Choice was created by Niki
Hello All,
I'm a new user in LimeSurvey, and i need to design a survey to our colleges for the business, but some idea is extremely difficult to perform.
I have 2 question Q1 & Q2 here,
Q1: Please Enter your name? ________
Q2: Please select your partner:
。Mary
。John
。Sam
。Sue
。Ming
Q1 is a short free text, let users enter their name and Q2 show a fixed list of users. If i fill "Mary" in Q1, is possible Q2 can exclude the username which Q1 has been entered? show as:
。John
。Sam
。Sue
。Ming
I try the array filter function, but it seems not support in short free text. Any idea here? Many Thanks
I'm a new user in LimeSurvey, and i need to design a survey to our colleges for the business, but some idea is extremely difficult to perform.
I have 2 question Q1 & Q2 here,
Q1: Please Enter your name? ________
Q2: Please select your partner:
。Mary
。John
。Sam
。Sue
。Ming
Q1 is a short free text, let users enter their name and Q2 show a fixed list of users. If i fill "Mary" in Q1, is possible Q2 can exclude the username which Q1 has been entered? show as:
。John
。Sam
。Sue
。Ming
I try the array filter function, but it seems not support in short free text. Any idea here? Many Thanks
The topic has been locked.
- Niki
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
8 years 9 months ago #120864
by Niki
Replied by Niki on topic Array Filter with Short free text & Single Choice
Hello All,
Any idea here? >< or i need to write java script to perform this?
many thanks!
Any idea here? >< or i need to write java script to perform this?
many thanks!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
8 years 9 months ago #120866
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 Array Filter with Short free text & Single Choice
In my opinion, this is not possible because anything can be entered in Q1 and there is no way to build Q2 to accommodate infinite names.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
8 years 9 months ago #120873
by Mazi
The only way to achieve this is coding some additional JavaScript which checks for each item of Q2
"IF {q1.shown} != <thisoption>".
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Array Filter with Short free text & Single Choice
I agree.tpartner wrote: In my opinion, this is not possible because anything can be entered in Q1 and there is no way to build Q2 to accommodate infinite names.
The only way to achieve this is coding some additional JavaScript which checks for each item of Q2
"IF {q1.shown} != <thisoption>".
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.