Loop through data to answers

More
5 months 1 week ago - 5 months 1 week ago #154636 by ottlngr
ottlngr created the topic: Loop through data to answers
Is it possible to loop though specific data attached to the participants?

Suppose I import the participants' email addresses along with 2 additional features, say "sex" and "age".

Then I want these two data fields, "sex" and "age" to get looped through the survey to appear in the participants' answers.

Is that possible with LimeSurvey?
Last Edit: 5 months 1 week ago by ottlngr.

Please Log in to join the conversation.

More
5 months 1 week ago #154637 by Ben_V
Ben_V replied the topic: Loop through data to answers
yes...it's pretty easy; just prefil an equation type question with one of the following "keyword":

{TOKEN:FIRSTNAME} inserts the value from the "firstname" field in the tokens table
{TOKEN:LASTNAME} inserts the value from the "lastname" field in the tokens table
{TOKEN:EMAIL} inserts the value from the "email" field in the tokens table

{TOKEN:ATTRIBUTE_1} inserts the value from the "attribute_1" field in the tokens table
{TOKEN:ATTRIBUTE_2} inserts the value from the "attribute_2" field in the tokens table
etc...

manual.limesurvey.org/Adding_a_question#...on_from_tokens_table

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now