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

SUJET : Pre-populating answers in a list question with token attributes

Pre-populating answers in a list question with token attributes il y a 2 ans 4 mois #76700

  • tacman1123
  • Portrait de tacman1123
  • Hors ligne
  • LimeSurvey Team
  • Messages : 125
  • Karma: 1
I'm sending a candidate questionnaire, and want to confirm their phone number, ward and party. With the phone number, it's easy, I set up a token attribute and use the default answer of {TOKEN:ATTRIBUTE_1}

But if my attribute 2 is Party and is D/R/I, and I have a list of Democrat, Republican and Independent, when it comes to default answers it lists them, but really I want to set it to a token value. Is this possible with 1.92?

Love this new feature, it's one of my favorites in 1.92.

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

Re: Pre-populating answers in a list question with token attributes il y a 2 ans 4 mois #76703

  • TMSWhite
  • Portrait de TMSWhite
  • Hors ligne
  • LimeSurvey Team
  • Messages : 759
  • Remerciements reçus 82
  • Karma: 36
Tac-

Not clear what you're asking. You want the default answer for your list to be {TOKEN:ATTRIBUTE_2}, and the coded values are D/R/I, but the display values are Democrat/Republican/Independent? If so, that should work fine - just use {TOKEN:ATTRIBUTE_2} as the default value. Each of the List question types supports default values, so have {TOKEN:ATTRIBUTE_2} be the coded value, not the display value; and you'll see the proper display value.

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

Re: Pre-populating answers in a list question with token attributes il y a 2 ans 4 mois #76706

  • tacman1123
  • Portrait de tacman1123
  • Hors ligne
  • LimeSurvey Team
  • Messages : 125
  • Karma: 1
I don't see where to indicate that. This is the default screen for a radio list:

easycaptures.com/fs/uploaded/475/5861607005.png

How do I indicate which one I want based on a token value?

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

Re: Pre-populating answers in a list question with token attributes il y a 2 ans 4 mois #76707

  • TMSWhite
  • Portrait de TMSWhite
  • Hors ligne
  • LimeSurvey Team
  • Messages : 759
  • Remerciements reçus 82
  • Karma: 36
Good point. If you can get {TOKEN:ATTRIBUTE_2} into into the database questions.default field, it will work.

So, someone (hint) needs to extend the user interface to give people the option to enter an equation - perhaps in addition to the <no default value>, one could have <other>, which would open a text entry box into which users could enter an equation.
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.129 secondes
Donation Image