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

More
8 years 9 months ago #120635 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 =)
The topic has been locked.
More
8 years 9 months ago #120864 by Niki
Hello All,
Any idea here? >< or i need to write java script to perform this?
many thanks!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #120866 by tpartner
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
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #120873 by Mazi

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: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose