Welcome to the LimeSurvey Community Forum

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

Auto token generation

  • MiguelLuisSouza
  • MiguelLuisSouza's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 month ago #264892 by MiguelLuisSouza
Auto token generation was created by MiguelLuisSouza
Hey guys! I'm trying to use LS to collect data for a survey. My question is about a functionality of the platform. After completing my questionnaire, I need each participant to receive an automatically generated link with three more accesses. This link must be sent to three new participants. Successively, each new participant receives a new automatically generated link with three more accesses to the questionnaire.

Ideally I need to identify the relationship between ID and token, as shown in the image
 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 1 month ago #264902 by DenisChenu
Replied by DenisChenu on topic Auto token generation
Only a plugin can do this in my opinion

extensions.sondages.pro/about/contact

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 month ago - 1 year 1 month ago #264905 by tpartner
Replied by tpartner on topic Auto token generation
Maybe redirect to a PHP page that uses the API add_participants() and invite_participants() methods.

An old example - forums.limesurvey.org/forum/can-i-do-thi...rvey?start=15#171537

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 year 1 month ago by tpartner.

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 year 1 month ago - 1 year 1 month ago #264910 by tammo
Replied by tammo on topic Auto token generation
In Survey 1: generate a random code. Use this random code in an email that you send to the respondent, showing a URL that they can use to invite three other people.
research.respondage.com/index.php/887227?newtest=Y&lang=en (this works and the URL for survey 2 will be sent to your email)

Example of URL for survey 2
research.respondage.com/index.php/353658...Y&lang=en&pin=QAZWSX


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 1 year 1 month ago by tammo.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 1 month ago #264921 by DenisChenu
Replied by DenisChenu on topic Auto token generation
Great idea tammo@example.com 

If you need a complex code : you can use gitlab.com/SondagesPro/QuestionSettingsType/generateUniqId

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose