display certain questions to every nth respondent

More
4 years 6 months ago #93710 by rajatchadha
rajatchadha created the topic: display certain questions to every nth respondent
Hi,

We need to administer an online survey to collect data from around 2000 persons. The survey comprises of 2 parts: first for all respondents and second part will be presented to every nth respondent. Could this be done using Lime? We need to use a single URL for the survey.

Thanks.

Rajat

Please Log in to join the conversation.

More
4 years 6 months ago #93814 by tpartner
tpartner replied the topic: display certain questions to every nth respondent
In short, no, not out-of-the-box.

A quick-and-dirty solution would be to use the {SAVEDID} which is available after submitting the first question page. You could use that number to populate a hidden question to be used for conditions later in the survey. The flaw with this method is that incomplete surveys also get a SAVEDID.

A more robust solution would be to make an AJAX call to a remote PHP script that queries the database to find the number of completed surveys and then populate the hidden question accordingly.

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.

Start now!

Just create your account and start using Limesurvey today.

Register now