Check out the LimeSurvey source code on GitHub!

display certain questions to every nth respondent

3 years 10 months ago #93710 by rajatchadha

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.



Please Log in to join the conversation.

3 years 10 months ago #93814 by tpartner
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.

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.

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