question about tokens, please help

More
5 years 2 months ago #76724 by sebb
sebb created the topic: question about tokens, please help
Hi, I am creating a survey and I want it to be open to everyone. The first question will be asking them for their mobile number. Based on the mobile number I want to check in the db if they answered the survey, if not then they can answer it. I dont have a list of the mobile numbers set up as tokens...Is it possible to do this?

Please Log in to join the conversation.

More
5 years 2 months ago #76728 by bwoo5
bwoo5 replied the topic: question about tokens, please help
If you have their mobile number available you can use them as tokens. Just set your survey up as token based, then import your token table from a file you create with the mobile phone number in the token field. Then what you can do is send just the generic link in the survey to everyone, when they go to it, there will be a box asking them enter in their "token". If you edit the language file, you can change this to ask them to enter their mobile phone number. But you would only want to do that if this is the only token based survey you have running at the time.

Please Log in to join the conversation.

More
5 years 2 months ago #76730 by sebb
sebb replied the topic: question about tokens, please help
that is the thing i dont have a list of mobile numbers of the people who are going to enter this survey so i cant create tokens...what else do you suggest i look into?

Thanks, much appreciated

Please Log in to join the conversation.

More
5 years 2 months ago #76761 by Fred01
Fred01 replied the topic: question about tokens, please help
Are you saying that you want to use tokens to control access, then you want the user to enter their mobile phone number, then if they try to do the survey again with the same mobile number then you want to stop them?

Please Log in to join the conversation.

More
5 years 2 months ago #76774 by DenisChenu
DenisChenu replied the topic: question about tokens, please help
Hello,

I think there are only ajax possibility for that. Don't see another solution actually.

Or use an alternative script before enter the survey.

A php script for example:
- Present a input box with "Enter your mobile phone"
- After click submit, the script test if the "token associated" exist,
-- if yes : launch the survey
-- if no create the token and launch the survey.

Not so hard to do something like that.

BUT, maybe there are private issue for mobile number phone associated with the survey.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 2 months ago #76835 by sebb
sebb replied the topic: question about tokens, please help
Hi,

thanks guys, iv ended up relying on the cookie.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now