Associate Participant's attribute information with Survey

Plus d'informations
il y a 3 ans 11 mois #126714 par wingman123
Hi Lime gurus,

Is there a way to associate a participant's attribute information into a survey.

For example say I created a participant attribute called "Mailing Address" and assigned it a value. Is there any way, even using an api within the code perhaps to load this information into a survey

Thanks

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 3 ans 11 mois #126715 par holch
So you are using tokens, I assume and you created a custom attribute, let's call it attribute_1, that contains the Mailing address, correct?

If the survey is not set to annonymous, you cann access this infomration via Expression Manager in the following way (not checked, just from the top of my head, have a look at the manual):
{TOKEN:attribute_1}

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 11 mois #126717 par wingman123
Thanks for the response! Realized I didnt do my homework well enough theres quite a few other posts as well on this. I will try it out and see how it goes.

Best

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 11 mois #126718 par wingman123
Everything worked great!

To share, I used the mapped attribute name in all caps
So:
mailingaddress = attribute_2 is referenced as:
{TOKEN:ATTRIBUTE_2}
I was also easily able to pre-fill an answer with the same reference in question->edit default answers for this question-> {TOKEN:ATTRIBUTE_2} in text field

Best
Les utilisateur(s) suivant ont remercié: holch, cdorin, Bubilla2020

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 1 jour #187913 par Bubilla2020
Gracias a ti pude resolver mi error. :)

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!