Welcome to the LimeSurvey Community Forum

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

user and token

  • nibos
  • nibos's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 10 months ago #155015 by nibos
user and token was created by nibos
I have a questionnaire and I would like to know if the following functionality is feasible: I create coupons with token and assign it to specific user. I want this user once completes every questionnaire by using the token to receive on his email, additional to the info he receives now, the content of the questionnaire with answers he completed.

Is it possible and how?

Thank you.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
6 years 10 months ago #155018 by tammo
Replied by tammo on topic user and token
Hi Nibos,

there is documentation about that!

manual.limesurvey.org/Survey_settings#No..._.26_data_management

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • nibos
  • nibos's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 10 months ago #155019 by nibos
Replied by nibos on topic user and token
Thank you very much for your response.
The topic has been locked.
  • nibos
  • nibos's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 10 months ago #155022 by nibos
Replied by nibos on topic user and token
Can you please assist on exactly what and where to enter? It is a bit confusing to me. I want the email that the participant receives upon completion of each questionnaire to include the data he completed, like it is sent to the admin but only the records the specific participant submitted.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
6 years 10 months ago #155026 by tammo
Replied by tammo on topic user and token
Do you use tokens (token table in LimeSurvey)?

If so, the user email is known in the system and can be reached via {TOKEN:EMAIL}

You can use this variable to send a detailed notification to. This is a notification that contains all answers.

But of course you need to know the email of the person that fills in the survey. If you do not use tokens, you must somewhere ask for it.

For example: short text question, question code = email (or anything you prefer).

This question has a question number.
It is in a group that has a group number
In a survey that has a survey number.

[surveynumber]X[group number]X[question number] together make up a code like 82733X12X73

You can then use {INSERTANS:82733X12X73} in the email template as the code for the email address to send your mail to.

Does this help?

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • nibos
  • nibos's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 9 months ago #155047 by nibos
Replied by nibos on topic user and token
I use token. The variable {TOKEN:EMAIL} holds only the email. I want the email that the participant receives once completes a questionnaire (it is the email template for confirmation) to contain the complete answer e.g. like the {VIEWRESPONSEURL}.
What should I include on the body of the email template?
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
6 years 9 months ago #155050 by tammo
Replied by tammo on topic user and token
Maybe I have not understood you right, but when you go to "Survey properties" and then to :"Email templates", you will see a "Detailed admin notification" that has the variable: {ANSWERTABLE}. This holds all answers. In the survey settings you can have this email (with your modifications) sent to the respondent using the email address as I explained in the posts above.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • nibos
  • nibos's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 9 months ago #155053 by nibos
Replied by nibos on topic user and token
Hi again, I have put the variable {ANSWERTABLE} in the email body for the confirmation email and once the participant receives it the email on the placeholder of the variable {ANSWERTABLE} the email displayes only the text "ANSWERTABLE". What can be wrong?
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
6 years 9 months ago #155054 by tammo
Replied by tammo on topic user and token
Which version of LimeSurvey are you using?

The answer I gave above always works with me.

Can you just have this detailed confirmation sent to the participant's email?

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • nibos
  • nibos's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 9 months ago #155055 by nibos
Replied by nibos on topic user and token
version 2.06+ Build 151215

On the email notification that receives there are also other variables e.g. {ADMINNAME} with the same syntax that works and displayed fine but this not ({ANSWERTABLE}).
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
6 years 9 months ago #155056 by tammo
Replied by tammo on topic user and token
Strange, I do not have that version, but I do have Version 2.6.2-lts Build 161206

In that version there is the variable {ANSWERTABLE}

I believe it has been available in earlier versions also. In my installation this works flawless. Maybe one of the real LS gurus need to look at this. You can always ask on the IRC channel at:
www.limesurvey.org/community/live-chat

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
5 years 11 months ago #165662 by tamiel
Replied by tamiel on topic user and token
I have been digging to find a way to send the users their responses as well. I haven't been able to find recent answers - anyone has found a way to include {ANSWERTABLE} in the user confirmation email? This plugin seems to solve this, but doesn't work on newer versions of lime survey ( github.com/lemeur/Limesurvey-Plugin-ConfirmByEmail ).
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose