Check out the LimeSurvey source code on GitHub!

Award a prize to the nth respondent

More
5 years 7 months ago #63632 by craigleat
I wish to award prizes to the 10th, 50th and 100th respondent to my survey, but it is an anonymous survey. Is it possible to pose a supplementary question (to request contact details) when the nth response is received?

When the 10th respondent submits she should receive feedback that she is the 10th respondent and therefore eligible for a prize and should have a question posed to her requesting contact details.

Please Log in to join the conversation.

More
5 years 7 months ago #63635 by tpartner
Look at quotas - docs.limesurvey.org/quotas&structure=Eng...tions+for+LimeSurvey .

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 7 months ago #63642 by craigleat
Thanks for the pointer to the docs, but how do I make the quota action silent after the 10th response? It seems to me that once the quota is full the action is triggered for every response thereafter. In my example, I wish to trigger an action at the 10th, 50th and 100th responses only.

Thanks,

Craig

Please Log in to join the conversation.

More
5 years 7 months ago #63712 by tpartner
Oh yeah, of course.

I think you may need to fire a remote script that queries the database
for number of submissions.

Here's an example of using JavaScript to call a remote PHP file - www.limesurvey.org/en/forum/can-i-do-thi...on-of-a-survey#55975 .

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 7 months ago #63713 by holch
maybe you can use conditions to show the question only when it is the 10th, or the 50th or the 100th. I am not sure if this possibility exists, but it should.

Otherwise you can do it like tpartner said.

Or what you could do is send them via the end url to a php script, that counts completed responses and open up a new short survey or a custom form for number 10, 50 and 100.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form