Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Use a question as a hidden lookup

More
7 years 5 months ago #165600 by blocka
I have a list of 200 locations. They are either Big or Small.

Respondents to my survey will be asked to enter the location number. I would like a way to set a flag to use later to decide whether to show questions related to Big or Small locations.

What would be the easiest way to do this? The site location number has no structure that let's me determine size .. They are just numbered 1 through 200.
The topic has been locked.
More
7 years 5 months ago #165601 by holch
Please do not ask basically the same question twice. You are basically asking the same thing here: www.limesurvey.org/forum/can-i-do-this-w...-classifying-answers

If you feel you did not express yourself correctly in the other thread then either update your question or add an comment to it.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
7 years 5 months ago - 7 years 5 months ago #165605 by Joffm
Hi, blocka,
Just an idea:
create a string "locstring" with the location numbers of small stores. Use the ones where there are less
#1#17#24#123#234#345#

With equation and function "strpos"

www.limesurvey.org/manual/Expression_Man...mplemented_Functions

you decide if the entered location number (surrounded by "#") is in the string.
Yes = small
No = big

Regards
Joffm

P.S.
With a "locstring" like #001#012#056#123# you have to "strpad" your entered store numbers first.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 5 months ago by Joffm.
The topic has been locked.
More
7 years 5 months ago #165620 by Joffm
Here an example of my idea.

File Attachment:

File Name: limesurvey...9442.lss
File Size:15.13 KB


Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tpartner
The topic has been locked.
More
7 years 5 months ago #165655 by tpartner
Couldn't you use an equation question for "locstring"?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose