Array Filter with Short free text & Single Choice

More
3 years 5 months ago #120635 by Niki
Niki created the topic: Array Filter with Short free text & Single Choice
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 =)

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #120864 by Niki
Niki replied the 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!

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #120866 by tpartner
tpartner replied the 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.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #120873 by Mazi
Mazi replied the topic: Array Filter with Short free text & Single Choice

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.

I agree.

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
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!