Welcome, Guest
Username: Password: Remember me

TOPIC: display certain questions to every nth respondent

display certain questions to every nth respondent 1 year 1 month ago #93710

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
The administrator has disabled public write access.

display certain questions to every nth respondent 1 year 1 month ago #93814

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.093 seconds
Donation Image