Pre-populating answers in a list question with token attributes

More
5 years 8 months ago #76700 by tacman1123
tacman1123 created the topic: Pre-populating answers in a list question with token attributes
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

Please Log in to join the conversation.

More
5 years 8 months ago #76703 by TMSWhite
TMSWhite replied the topic: Pre-populating answers in a list question with token attributes
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

Please Log in to join the conversation.

More
5 years 8 months ago #76706 by tacman1123
tacman1123 replied the topic: Pre-populating answers in a list question with token attributes
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

Please Log in to join the conversation.

More
5 years 8 months ago #76707 by TMSWhite
TMSWhite replied the topic: Pre-populating answers in a list question with token attributes
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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!