The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: display certain questions to every nth respondent

display certain questions to every nth respondent 2 months 5 days 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 2 months 4 days ago #93814

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2853
  • Thank you received: 423
  • Karma: 243
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

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