Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Loop through data to answers

  • ottlngr
  • ottlngr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 11 months ago - 6 years 11 months ago #154636 by ottlngr
Loop through data to answers was created by ottlngr
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: 6 years 11 months ago by ottlngr.
The topic has been locked.
More
6 years 11 months ago #154637 by Ben_V
Replied by Ben_V on 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)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose