Welcome to the LimeSurvey Community Forum

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

Can I control the TOKEN format?

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 1 month ago #211523 by blocka
Can I control the TOKEN format? was created by blocka
In some of our surveys, we send out invitiations via snail mail. Each mailer has a token on it. While I can create my own list of tokens, and import them into LS, this is an extra step I'd like to avoid...

I'm wondering if there is a way to prevent LS from generating TOKENs that contain both the digit zero and the uppercase letter O? This is because sometimes we get tokens like ABo0O2OA  -- and in print, the zero and the letter O look very similar, resutling in typoes. 

For my case, if someone can provide code to modify LS to avoid O and zero, I can update my local instance to accomodate this. 

I'm using version 3.25.6+201229   
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #211623 by tpartner
Replied by tpartner on topic Can I control the TOKEN format?
No, this is not available in the core package.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
3 years 1 month ago #211642 by tammo
Replied by tammo on topic Can I control the TOKEN format?
We did some work on this, but at the moment I do not know if the plugin will work out of the box:

github.com/toolsforresearch/TFRcustomToken

Please create an issue if this needs follow-up,

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • Jane
  • Jane's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
3 years 1 month ago #211643 by Jane
Replied by Jane on topic Can I control the TOKEN format?
In LS4 there is a core plugin that allows this:
github.com/LimeSurvey/LimeSurvey/tree/ma.../plugins/customToken
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #211703 by holch
Replied by holch on topic Can I control the TOKEN format?

In LS4 there is a core plugin that allows this:

But please note that LS4 is not yet declared stable so for production I would still wait to use it, for testing: Go for it!

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 1 month ago #211704 by blocka
Replied by blocka on topic Can I control the TOKEN format?
Would it be a huge amount of effort to make the plugin 3.x compatible? Alas, I'm not a PHP developer, but might be able to sponsor the work...
The topic has been locked.
  • Jane
  • Jane's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
3 years 1 month ago #211705 by Jane
Replied by Jane on topic Can I control the TOKEN format?
Did you try the plugin at github.com/toolsforresearch/TFRcustomToken ?
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose