Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Multiple tokens for a single user

Multiple tokens for a single user il y a 1 an 5 mois #95403

  • TarkiB
  • Portrait de TarkiB
  • Hors ligne
  • Fresh Lemon
  • Messages : 7
  • Karma: 0
Hi there,

I want users to be able to answer the same survey multiple times. The key thing is that I don't want previous answers to be overwritten.

The reason for this is that I want users to take the survey every year or so, and I need to be able to compare their responses to see what has changed over time. I need to be able to do this comparison on a per-user basis.

It seems that the best way to do this would be to have multiple tokens assigned to a single person. Is there a way to do this? Or is there a better way to go about it?

Please note, the 'token uses' option is no help, as each time they submit their answers, it overwrites the previous anwers.

Any help is much appreciated!

Cheers
L'administrateur a désactivé l'accès en écriture pour le public.

Multiple tokens for a single user il y a 1 an 5 mois #95413

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4281
  • Remerciements reçus 807
  • Karma: 370
Please note, the 'token uses' option is no help, as each time they submit their answers, it overwrites the previous anwers.
This should not be the case. Make sure you have "Allow editing of answers after completion" set to "No".
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: TarkiB

Multiple tokens for a single user il y a 1 an 5 mois #95435

  • muriloconte
  • Portrait de muriloconte
  • Hors ligne
  • Fresh Lemon
  • Messages : 2
  • Karma: 0
I have in a sense the same problem. I need users to fill in some requests forms and, obviously, one user must be able to fill in many different requests. As I could see, the token system only allows one user -> one form.

Any hint?
L'administrateur a désactivé l'accès en écriture pour le public.

Multiple tokens for a single user il y a 1 an 5 mois #95456

  • TarkiB
  • Portrait de TarkiB
  • Hors ligne
  • Fresh Lemon
  • Messages : 7
  • Karma: 0
muriloconte, I think you may be after something like this?

tpartner, thanks for that suggestion, that worked perfectly. I have another question that you might be able to help me out with.

Is there a way to automatically make evey token have a certain number of uses? For example, when I click Generate Tokens, it generates a token for each survey participant, but that token only has one use. Is there a way to change evey token for evey survey participant to have 5 uses instead of 1?

Currently the only way to change token uses is individually, and due to the number of participants I have, that won't really work.

Cheers!
L'administrateur a désactivé l'accès en écriture pour le public.

Multiple tokens for a single user il y a 1 an 5 mois #95457

  • bdg
  • Portrait de bdg
  • Hors ligne
  • Fresh Lemon
  • Messages : 6
  • Remerciements reçus 2
  • Karma: 0
When you import a CSV file with participants, you can add a field called 'usesleft' and set it to whatever maximum number of times you want each participant to be able to complete the survey. If you don't include this field in the CSV file then LimeSurvey defaults to 1.

If you already have a long list of participants then you may have to download the tokens, change the values in the 'usesleft' column and save, delete all token entries for that survey in LimeSurvey, and upload the CSV file again. CSV import is described here.

Or, if you can access the database directly, then a small SQL update query directly on the relevant token table will do.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: TarkiB
Modérateurs: ITEd
Temps de génération de la page : 0.152 secondes
Donation Image