- Posts: 162
- Thank you received: 14
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
- Topic Author
- Offline
- Elite Member
Less
More
7 years 6 months ago #142484
by teracomp
Dave Phillips
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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
7 years 6 months ago #142496
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 14
7 years 6 months ago #142498
by teracomp
Dave Phillips
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:
For my notes, in Survey Settings I provided two settings:
- Set the End URL to mysite.com/lime/index.php?token={TOKEN }
- And I turned on: Automatically load URL when survey complete.
Dave Phillips
The topic has been locked.