Random codes to participants

More
2 months 2 weeks ago #197827 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?

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 2 weeks 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:
{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.

Please Log in to join the conversation.

More
2 months 2 weeks 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.

Please Log in to join the conversation.

More
2 months 2 weeks 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

Please Log in to join the conversation.

More
2 months 2 weeks ago #197844 by DenisChenu

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

Please Log in to join the conversation.

More
2 months 2 weeks 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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now