Welcome, Guest
Username: Password: Remember me

TOPIC: question about tokens, please help

question about tokens, please help 2 years 7 months ago #76724

  • sebb
  • sebb's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
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?
The administrator has disabled public write access.

Re: question about tokens, please help 2 years 7 months ago #76728

  • bwoo5
  • bwoo5's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Thank you received: 4
  • Karma: 0
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.
The administrator has disabled public write access.

Re: question about tokens, please help 2 years 7 months ago #76730

  • sebb
  • sebb's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
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
The administrator has disabled public write access.

Re: question about tokens, please help 2 years 7 months ago #76761

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • Thank you received: 5
  • Karma: 3
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?
The administrator has disabled public write access.

Re: question about tokens, please help 2 years 7 months ago #76774

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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
The administrator has disabled public write access.

Re: question about tokens, please help 2 years 7 months ago #76835

  • sebb
  • sebb's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Hi,

thanks guys, iv ended up relying on the cookie.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.103 seconds
Donation Image