Welcome to the LimeSurvey Community Forum

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

Include attributes in a survey question?

  • sD960
  • sD960's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #124703 by sD960
Hello-

We would like to customize our survey so that each survey taker sees some personalized text in a question, taken from the attributes. We know how to include attribute information in the email letters that invite people to take the survey (e.g., "Dear <specific-name>", you are invited to take a survey...), but is it possible to do this within a survey question as well (e.g., "So, <specific-name>, how would you rate...")?

The attribute text we want to use is not actually the person's name, but rather a two- or three-word phrase that would differ for each survey-taker. Does the length of text matter?

Is there some other way, other than using attributes, to achieve the same result?

We are using Build 140212.

Please note that I create the surveys but I myself do not handle the invitation process, so I have not directly worked with attributes. So, please don't be too jargon-y in your response!

Thanks!
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #124708 by holch
Replied by holch on topic Include attributes in a survey question?
What version of LS is build 140212? 2.05?

You can use expression manager to insert the value of a token attribute. Let's assume the token attribute is ATTRIBUTE_1, then you would use something like:
Code:
{TOKEN:ATTRIBUTE_1}

Have a look here at the bottom of this paragraph about email placeholders. It describes what is possible within the survey itself (as long as it is not anonymous):
manual.limesurvey.org/Tokens#Email_placeholders

I am not aware of a limit for the length of the text in a token attribute.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • sD960
  • sD960's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #124723 by sD960
Replied by sD960 on topic Include attributes in a survey question?
Yes, the LS version of build 150212 is 2.05.
The topic has been locked.
  • sD960
  • sD960's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #124725 by sD960
Replied by sD960 on topic Include attributes in a survey question?
Thanks so much! We're experimenting, and are succeeding so far--we've gotten an individual first name to show up as text within a survey question. (Haven't yet tried the longer attribute text that we actually want inserted in the survey.)

As always, the folks I make surveys for do support LimeSurvey.
The topic has been locked.
More
8 years 7 months ago #124870 by rschipull
Replied by rschipull on topic Include attributes in a survey question?
Is there a maximum number of attributes that can be included in an expression?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #124872 by holch
Replied by holch on topic Include attributes in a survey question?
Not that I am aware of.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose