Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Using the same token multiple times

Using the same token multiple times 5 years 3 months ago #65399

  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 344
  • Thank you received: 68
  • Karma: 38
In 1.91 reuse tokens is a default feature... in the token screen you can sent how many times the token can be used.
---
Menno Dekker
The administrator has disabled public write access.

Using the same token multiple times 5 years 3 months ago #65402

  • dataguru
  • dataguru's Avatar
  • Offline
  • Junior Lime
  • Posts: 36
  • Karma: 0
Yes, and it works beautifully!!

Can the number of uses be set as part of importing a csv token table?
The administrator has disabled public write access.

Using the same token multiple times 5 years 3 months ago #65403

  • dataguru
  • dataguru's Avatar
  • Offline
  • Junior Lime
  • Posts: 36
  • Karma: 0
Nevermind. I just answered my own question. :)

I exported a token table to get the field names.
The field "usesleft" was there, so I incorporated that into the csv file and it imported just fine!
The administrator has disabled public write access.

Using the same token multiple times 4 years 9 months ago #74865

  • mfreund
  • mfreund's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Is there a place in the survey preferences to set the default number of uses per token?

I am in a similar situation, where I have a survey with public access but token-based tracking of respondents, where respondents will sign up on the registration page but then have the option of responding to the survey multiple times with the same token. (It is being used to collect ideas, and I want to allow people to submit multiple ideas if they choose.)

I have looked everywhere, but can't seem to find a setting to make the default number of uses per token more than 1. Obviously that can be changed manually in the token table or if I were importing a predefined token list, but as a public registration survey each person will be registering themselves and LS will create their token.

Is there a setting to do this?
The administrator has disabled public write access.

Using the same token multiple times 4 years 9 months ago #74879

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9600
  • Thank you received: 1376
  • Karma: 390
mfreund wrote:
Is there a setting to do this?
Not actually, maybe you can put a feature request, i think it's a good idea.

Maybe you can try:
ALTER TABLE `lime_tokens_XXXXX` CHANGE `usesleft` `usesleft` INT( 11 ) NULL DEFAULT '1000'
(replace XXXX with your survey-id ), not sure because i don't read the code for registration.

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 (use private message).
The administrator has disabled public write access.
Time to create page: 0.250 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form