Welcome to the LimeSurvey Community Forum

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

Random codes to participants

  • aoertle
  • aoertle's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 hours ago #197827 by aoertle
Random codes to participants was created by aoertle
Hi I need your help!

I am trying to give my participants a unique code at the end of the survey. This way if they wish to redact their responses after they have taken the survey, they can email the administrator the code and the administrator can delete the response.

I will not know who my participants are before the survey.

How do I do this?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 hours ago #197830 by holch
Replied by holch on topic Random codes to participants
Does it need to be "random"? Because each response gets an ID given by Limesurvey, the SAVEDID. You can access/display it via Expression Manager using this:
Code:
{SAVEDID}

Of course you can create a random code as well, but as with everything random, there is a chance that you get dublicates. Of course with a long random number the chances get smaller, but the chance is still there.

Ideally, I would probably work with a combination of both, e.g. create a random number and add it at the beginning or the end of the SAVEDID and save this into an equation question.

When the person comes and gives you the code, you'd have to search this equation question for the right code.

There was a discussion about this in the forum already, with code examples. If I recall right, someone even created a plugin.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 hours ago #197832 by holch
Replied by holch on topic Random codes to participants

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 45 minutes ago #197840 by Joffm
Replied by Joffm on topic Random codes to participants
In my opinion it is really sufficient to use the {SAVEDID}.

Ideally, I would probably work with a combination of both, e.g. create a random number and add it at the beginning or the end of the SAVEDID and save this into an equation question.


I also thought about this (to hide the shortness of the first {SAVEDID}s).
So you may always have a 8 digit code.

If the only reason is to be able to identify a special respondent from the answer table, everything else seems to be
exaggerated.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #197844 by DenisChenu
Replied by DenisChenu on topic Random codes to participants

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: holch, tpartner
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #197872 by holch
Replied by holch on topic Random codes to participants

DenisChenu wrote: gitlab.com/SondagesPro/QuestionSettingsType/generateUniqId


I was looking for this one and couldn't find it on SondagePro. Thanks for posting.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose