- Posts: 65
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Attributes into Questions
- jimdavies
- Topic Author
- Offline
- Senior Member
Less
More
6 years 6 months 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12888
- Thank you received: 3965
6 years 6 months ago #159039
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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
Attachments:
The topic has been locked.
- jimdavies
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 65
- Thank you received: 0
6 years 6 months 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.
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.
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
6 years 6 months ago #159071
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12888
- Thank you received: 3965
6 years 6 months ago #159077
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Attributes into Questions
You read this in the manual?
Joffm
manual.limesurvey.org/Expression_Manager#Access_to_VariablesAccess 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).
...
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.