THEMA: Generate Unique PIN for user

I have a survey where the people taking it need to be anonymous (for their company info). It is possible that the person would like to get more information on their own after the survey. I thought that I could generate a unique PIN number that would show at the beginning of the survey with text telling them to remember this number for future use..yadda yadda. That way if they do want more info, they can tell us the number and we can just pull out their answers. The way this survey works..they cannot do it twice.

I cannot use token/emails..because the user would think their answers could be tracked back to them...also multiple users could be taking the survey on one computer at work..so IP wont give them away.

I read about insertrans, savedid, etc...not sure if what I want to do would apply.

Any help will be greatly appreciated,
Marilyn

Der Administrator hat öffentliche Schreibrechte deaktiviert.

JavaScript is currently disabled.Please enable it for a better experience of Jumi.

Ditto. I need this option as well. We are collecting anonymous research data in a university setting. Ethics requirements call for us to be able to remove a participant's at their request. We'd like to give each participant a unique PIN at the outset so that if they contact us, we can identify their data set.

So, if this is doable, I too would greatly appreciate the info. Thanks much.

Hi, Sorry I have been so busy lately I should have came back here and explained how I got this to work.

Just use: SAVEDID

It is my understanding that you have to have a question answered before it will show the number....so I just had a survey agreement where they click yes before they take the survey. I also placed it at the end of the survey as a reminder.

i.e. Please remember this number if you would like to discuss your individual results: SAVEDID (which will show the unique ID number).

I am not sure but I think I remember that the survey needs to be Active/Live before you will see the actual number.

Hi, Sorry I have been so busy lately I should have came back here and explained how I got this to work.

Just use: SAVEDID

It is my understanding that you have to have a question answered before it will show the number....so I just had a survey agreement where they click yes before they take the survey. I also placed it at the end of the survey as a reminder.

i.e. Please remember this number if you would like to discuss your individual results: SAVEDID (which will show the unique ID number).

I am not sure but I think I remember that the survey needs to be Active/Live before you will see the actual number.

My survey is now live and it is working just fine.

Hope this helps,
Marilyn

Marilyn,
you are right at each point. The SAVEDID is the unique ID for each data set at the lime_survey_12345 table and it is only available for activated surveys AND you need to have clicked "next" at least once to store partial survey data and get such an ID assigned.

Snooping around, it looks like SAVEDID is simply seqentiall numbers. I need something that would provicde IDs that are not easily be guessed. I'm going to try using a hidden question with the label "PIN" and the default answer to something like {time()*rand()}. Then I'll use INSERTANS to provide the PIN to the respondent. I'll post the details when I've worked them out and run some tests.

Snooping around, it looks like SAVEDID is simply seqentiall numbers. I need something that would provicde IDs that are not easily be guessed. I'm going to try using a hidden question with the label "PIN" and the default answer to something like {time()*rand()}. Then I'll use INSERTANS to provide the PIN to the respondent. I'll post the details when I've worked them out and run some tests.

There is an example like that here. Create an Equation-type question, named PIN, and put this code in it:

{if(!is_empty(PIN),PIN,time()*rand())}

That will ensure that PIN only gets generated once (instead of once per page visit and validation).