- Posts: 1
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Random codes to participants
- aoertle
- Topic Author
- Offline
- New Member
Less
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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2739
4 years 9 hours ago #197830
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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:
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2739
4 years 9 hours ago #197832
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Random codes to participants
Here you should be able to find some code:
www.limesurvey.org/forum/can-i-do-this-w...code-for-amazon-turk
www.limesurvey.org/de/foren/can-i-do-thi...-of-survey-for-mturk
www.limesurvey.org/forum/can-i-do-this-w...code-for-amazon-turk
www.limesurvey.org/de/foren/can-i-do-thi...-of-survey-for-mturk
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3975
4 years 45 minutes ago #197840
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Random codes to participants
In my opinion it is really sufficient to use the {SAVEDID}.
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13633
- Thank you received: 2490
3 years 11 months 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2739
3 years 11 months ago #197872
by holch
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.
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.