Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Prefilled answers based on Token

Prefilled answers based on Token 1 Jahr 2 Monate her #97010

  • Carinaa
  • Carinaas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Hi there,

I just wanted to ask, if it is possible to prefill answers to questions based on tokens?

There is a list with all survey participants that also includes the departement for the most of them. For some members this information is missing.
When a member gets the token-based link and he starts the survey, the answer for the departement should already be filled in, when available in the previously mentioned list. If not or false entered the participant should be able to edit.

Does anyone has a hint on that?

Thank you,
jo3ran
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Prefilled answers based on Token 1 Jahr 2 Monate her #97091

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4185
  • Dank erhalten: 785
  • Karma: 359
You should be able to use a placeholder like {TOKEN:ATTRIBUTE_1} in the default answer setting.
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Prefilled answers based on Token 1 Jahr 2 Monate her #97125

  • Carinaa
  • Carinaas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Thank you, that might work but would not be automated as desired.
In that case I will have to create the tokens as a first step and evaluate all generated IDs manually, filling the answers as a second step, isn't it?

I would rather like to import (csv) the prefilled answers together with the list of participants or even from a second list.

Best,
jo3ran
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Prefilled answers based on Token 1 Jahr 2 Monate her #97130

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4185
  • Dank erhalten: 785
  • Karma: 359
In that case, you may be able to use parts of this workaround - manual.limesurvey.org/Workarounds:_Manip...ulate_several_fields

Particularly the $.get() and jQuery.csv() functions.
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Prefilled answers based on Token 1 Jahr 2 Monate her #97326

  • Carinaa
  • Carinaas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Hi guys,

I did't want to make you wait a second longer ;)

It was easier as thought:
Just add the amount of additional attributes to your tokens, read them in via .csv or other import and then add as prefilled answer {TOKEN:Attribute_1} or whatever your desired attributes name is. Like tpartner was saying ;)

Regards and thanks a lot,
Jöran
Letzte Änderung: 1 Jahr 2 Monate her von Carinaa. Begründung: Forgot to thank
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.120 Sekunden
Donation Image