Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Prevent duplicate usage of token before submission

  • rmfalcao
  • rmfalcao's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #216287 by rmfalcao
Hi there,

I would like to administer a survey with tokens, and I want to ensure that each token will be used only once.

I know that if I set "allow multiple responses" OFF a token cannot be used after a response with the same token was submitted. However I would like to prevent the usage of a token also if the token has been used but the response was not yet submitted.

Is it possible?

Thanks you in advance.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago - 4 years 1 month ago #216290 by tpartner
If you enable token-based response persistence, the respondent should be sent back to the uncompleted response.

- www.limesurvey.org/manual/Participant_se...onses_with_one_token

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 1 month ago by tpartner.
The topic has been locked.
  • rmfalcao
  • rmfalcao's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #216291 by rmfalcao
Thank you, Tony.

But I am looking for something slightly different: when someone (it does not matter whether it is the same user or another user) tries to use the same token again, I would like to tell them that the token was already used.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #216295 by tpartner
As far as I know, that's not possible.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #216304 by holch

But I am looking for something slightly different: when someone (it does not matter whether it is the same user or another user) tries to use the same token again, I would like to tell them that the token was already used.

Like Tony, as far as I know, that is not possible.

Because where would you set the cut off? If someone starts the survey, stops for a few minutes, then goes back. Should this already be excluded? Or only after hours? How will Limesurvey know, when to make the cut off?

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 1 month ago #216363 by DenisChenu
More details + plugin can do this.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose