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
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):
Code:
{TOKEN:attribute_1}
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
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.
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
The following user(s) said Thank You: holch, cdorin, Bubilla2020