Check out the LimeSurvey source code on GitHub!

automatically generate tokens / immediately automatically email invitations?

More
5 years 9 months ago #58804 by Surveyer
When using tokens, is it possible to let someone enter a referral code and have it automatically generate their token, and then either:

* redirect them to immediately take the survey, or
* immediately and automatically email them their invitation?

Please Log in to join the conversation.

More
5 years 9 months ago #58807 by DenisChenu
Hello,

You can do your own php script to fill the token database.
Token database aren't so complicated.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 9 months ago #58814 by Surveyer
Yes, and any advice for after the token database is filled on how to:

* redirect them to immediately take the survey (preferred), or
* immediately and automatically email them their invitation?

Thank you!

Please Log in to join the conversation.

More
5 years 9 months ago - 5 years 9 months ago #58816 by DenisChenu
I think the best is to use a redirect php function .

The idea:

- generate a unique token id $genToken
- insert the token in the database lime_token_$sidSurvey

and after:
header("Location: ".$yourURL."index.php?sid=".$sidSurvey."&token=".$genToken."&newtest=Y");

With this : you don't have to have a valid email for the surveyor :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 5 years 9 months ago by DenisChenu. Reason: valid email

Please Log in to join the conversation.

More
5 years 9 months ago #58867 by Surveyer
Excellent. Thank you Shnoulle! I'll try that approach. Thanks again!

Please Log in to join the conversation.

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