Survey with conditions

More
5 years 4 months ago #74723 by tatle
tatle created the topic: Survey with conditions
Hi

I have a question about LimeSurvey.
I installed it successfully on my machine and now I'm trying to create a new survey that fits my needs.
My project is the following:

I need to make a survey for a masseuse. She's in our office the whole afternoon. There are five different times for booking a massage.
For example: 2 p.m., 2.30, 3.00 etc.

But the people who fill out the survey should only be able to select the time, which is right after the already selected time.

For example: If there's a client at 2 p.m., the next client should only be able to select the next time. That would be 2.30.
Also the first who fills out the survey should only be able to select the first time available. In this case it would be 2 p.m.

I hope this is understandable.
Is this possible to do with LimeSurvey?

Best regards

Please Log in to join the conversation.

More
5 years 4 months ago #74793 by tpartner
tpartner replied the topic: Survey with conditions
To do this you would need to create a remote PHP script that queries the database to find the last booked time and then have the survey automatically select the next available time. There would be a risk (although small in this case) of two respondents accessing the survey at the same time.

All in all, I think it's a little involved for what you need to do.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 4 months ago #74873 by tatle
tatle replied the topic: Survey with conditions
ok, thank you.
I thought that would be hard to manage.
But great program anyway :)

Please Log in to join the conversation.

More
5 years 4 months ago #74915 by Mazi
Mazi replied the topic: Survey with conditions
I once coded a similar workaround for a customer of mine. For a certain question type, the new code checks if an answer option (in your case a certain time range) was already selected. If so, the code disables the according options.
This would also offer more flexibility, because users could also chose a time later, not directly after the last selected time slot.

If you are interested in custom code solutions, you can contact me at This email address is being protected from spambots. You need JavaScript enabled to view it.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now