Welcome to the LimeSurvey Community Forum

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

Get user token for end of survey link

  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 5 months ago #142484 by teracomp
Get user token for end of survey link was created by teracomp
I would like to use the user's token to redirect them to a page that displays their computed results based on their responses.
When I tested this I saw the token passed as a parameter, but as soon as I started taking the survey, the parameter was no longer present. I suspect it's stored somewhere, but I don't know where or how to access it.

Is it possible to create a link at the end of the survey that goes to a page of my choice with the token as a parameter to allow me to reveal that respondent's results?

Is there a better method?

Dave Phillips
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 5 months ago #142496 by tpartner
Replied by tpartner on topic Get user token for end of survey link
If the survey is non-anonymous you can use the {TOKEN} placeholder. So, something like:
Code:
http://example.com?token={TOKEN}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: teracomp
The topic has been locked.
  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 5 months ago #142498 by teracomp
Replied by teracomp on topic Get user token for end of survey link
Fantastic! Thanks! :laugh:

For my notes, in Survey Settings I provided two settings:
  1. Set the End URL to mysite.com/lime/index.php?token={TOKEN }
  2. And I turned on: Automatically load URL when survey complete.

Dave Phillips
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose