Welcome to the LimeSurvey Community Forum

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

Redirect to a survey based on token.

  • Riadh2020
  • Riadh2020's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 2 weeks ago #267342 by Riadh2020
Redirect to a survey based on token. was created by Riadh2020
Surevy/ Token Please help us help you and fill where relevant:
LimeSurvey version: 6.6.1
Own server
Survey theme/template: fruity
==================

Hello,
I have 20 active surveys I want to now if I can redirect a participant to a survey based on the token  ( dummy token)?
Ex: -If the token is 12345  the participant will be redirected to Survey 1,
If the token is HGvfd  the participant will be redirected to Survey 2  ..etc
  So based on the token i will redirect which survey this participant will fill
  Thanks.
 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 2 weeks ago #267344 by holch
Replied by holch on topic Redirect to a survey based on token.
No, this option does not exist. You need the survey URL to get to the survey and then the token to access the survey.

You would have to built your own script where respondents type in their token and you look up a database to redirect to the correct survey. This is not built in, also because tokens can be the same for different surveys. It is not unique for the Limesurvey installation, only unique (if you autogenerate it in Limesurvey) for the specific survey.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 2 weeks ago #267358 by DenisChenu
Replied by DenisChenu on topic Redirect to a survey based on token.
?
A solution exist :
  1. create a CSV file with tokens and survey ID related on attribute 1
  2. Import this token table on a new token based survey
  3. In this new survey : just create a Show text question
  4. In this new survey use End URL like this : /index.php/{TOKEN:ATTRIBUTE_1}
  5. Import token in the other sureys

 

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.
The following user(s) said Thank You: Riadh2020

Please Log in to join the conversation.

  • Riadh2020
  • Riadh2020's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 2 weeks ago #267440 by Riadh2020
Replied by Riadh2020 on topic Redirect to a survey based on token.
thank you Denis. I will try your solution.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose