Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Using the same token multiple times

Re: Using the same token multiple times 2 years 11 months ago #65399

  • mdekker
  • mdekker's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 341
  • 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.

Re: Using the same token multiple times 2 years 11 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.

Re: Using the same token multiple times 2 years 11 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.

Re: Using the same token multiple times 2 years 6 months ago #74865

  • mfreund
  • mfreund's Avatar
  • OFFLINE
  • Bronze Donor
  • 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.

Re: Using the same token multiple times 2 years 6 months ago #74879

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 240
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
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.141 seconds
Donation Image