- Posts: 409
- Thank you received: 34
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Use a question as a hidden lookup
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
6 years 1 month ago #165600
by blocka
Use a question as a hidden lookup was created 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.
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.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
6 years 1 month ago #165601
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Use a question as a hidden lookup
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.
If you feel you did not express yourself correctly in the other thread then either update your question or add an comment to it.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12933
- Thank you received: 3979
6 years 1 month ago - 6 years 1 month ago #165605
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Use a question as a hidden lookup
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"
manual.limesurvey.org/Expression_Manager#Implemented_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.
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"
manual.limesurvey.org/Expression_Manager#Implemented_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: 6 years 1 month ago by Joffm.
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12933
- Thank you received: 3979
6 years 1 month ago #165620
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Use a question as a hidden lookup
Here an example of my idea.
Regards
Joffm
Regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: tpartner
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
6 years 1 month ago #165655
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 Use a question as a hidden lookup
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.