Welcome to the LimeSurvey Community Forum

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

Display a Participant ID at the end of the Survey

  • LoïcH7012
  • LoïcH7012's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 weeks ago #265894 by LoïcH7012
(Write here your question/remark)Please help us help you and fill where relevant:
Your LimeSurvey version: 3.17.3+190429
Own server or LimeSurvey hosting : Limeserver hosting
Survey theme/template: Vanilla / Minimal template
==================
Hi everyone,

I use LimeSurvey for the first time, and i want to assign a random and unique number for each user.
I would also like this number to be displayed at the end of the questionnaire.

I had thought of 2 options:
- Either generate this number via a correspondence table on a first questionnaire, and send the participant to the second questionnaire
- Either display the participant's identification number at the end of the questionnaire (but I can't find how to display a value at the end of the questionnaire).

For the 2nd solution, I found this topic : forums.limesurvey.org/forum/can-i-do-thi...he-end-of-the-survey
But it doesn't help me much, because I don't know how to display a value at the end of the questionnaire.

Could you help me?
Thanks in advance

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 2 weeks ago #265895 by Joffm
Hi, the first answer of your link contains the solution.
The {SAVEDID} returns a unique number of each response.
It is just an autoincremental value.
If desired you can extend it by some arithmetical manipulation.
And it is displayed - whenever you want - by ExpressionScript.
Like {135724+SAVEDID}
This way you get a six digit unique number for each respondent.

Read the manual about question type "equation" and about "ExpressionScript"

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: LoïcH7012

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose