Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Conditional "log-in"

  • adl2017
  • adl2017's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #153896 by adl2017
Conditional "log-in" was created by adl2017
I was wondering if it was possible to do a two-step consent process with LimeSurvey for psychological research. We're doing a study that involves questionnaires with teens and we need their parents to consent before they are able to do their survey that asks them for consent too. Ideally, these surveys will be separate and the adolescent can only "log into" their survey if the parent has finished their survey beforehand (the adolescent's log-in is conditional on the parent completing theirs). Is this possible? Thanks!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #153902 by tpartner
Replied by tpartner on topic Conditional "log-in"
One possibility may be to, on completion of the parent survey, make an AJAX call to a remote PHP script that uses the Remote Control 2 API to create a token and send an invitation mail for the teen survey.

Here is an example of such a PHP script (it could probably be cleaned up a bit) - www.limesurvey.org/forum/can-i-do-this-w...s-to-a-survey#149782

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose