Welcome to the LimeSurvey Community Forum

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

Attributes into Questions

  • jimdavies
  • jimdavies's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 month ago #159029 by jimdavies
Attributes into Questions was created by jimdavies
How do you pull attributes into questions? I tried the tags used in the email template but that did not work.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #159039 by Joffm
Replied by Joffm on topic Attributes into Questions
Please, show us how you tried to do this?
Maybe it's just a typo, or something else forgotten.

If I enter in the question text:
Title: {SURVEYNAME}'

Description: {SURVEYDESCRIPTION}

Admin Name:{ADMINNAME}

Respondent Firstname {TOKEN:FIRSTNAME}

I get the following (screenshot)

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • jimdavies
  • jimdavies's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 month ago #159066 by jimdavies
Replied by jimdavies on topic Attributes into Questions
The attributes I want to pull in have been renamed attribute_2, attribute_3 and attribute_4.

Below is how I put them in the question (which is wrong)


How did the level of service provided by this particular recruiter when recruiting {TOKEN ATTRIBUTE_2} {TOKEN ATTRIBUTE_3} for a {TOKEN ATTRIBUTE_4} position compare to the level of service you normally receive from the same recruiter?

And attached is how the question displays.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #159071 by tpartner
Replied by tpartner on topic Attributes into Questions
Try:

Code:
{TOKEN:ATTRIBUTE_2}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #159077 by Joffm
Replied by Joffm on topic Attributes into Questions
You read this in the manual?

Access to Variables

Expression Manager provides read-only access to whichever variables we might need. For backwards compatibility, it provides access to the following:

TOKEN:xxx - the value of a TOKEN (e.g. TOKEN:FIRSTNAME, TOKEN:ATTRIBUTE_5) (Only for NOT anonymous survey).
...

www.limesurvey.org/manual/Expression_Man...#Access_to_Variables

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose