Welcome to the LimeSurvey Community Forum

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

Dynamic parameters on surveys by participants?

  • ejosepintog
  • ejosepintog's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168751 by ejosepintog
Hi.

I am trying to do different surveys about travel, they are all similar, the only thing they have are different, the origin, the destination and the company in the questions.
These attributes are loaded by each participant.

Is there any way to get them dynamically in the survey, or should I create a survey for each company, destination and origin?

Thanks.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168753 by holch
When you are saying "these attributes are loaded by each participant" I assume you know your participants, their origin, their destination and the company and you use tokens for this.

In this case, you can create custom token attributes for "origin", "destination" and "company" and you can reference them via piping (use Expression Manager) into your survey.

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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168756 by Joffm
Of course you can do that.

As far as I understand these three different things are in the participants data as attributes.

So just pipe the attribute into the question (or answer) text

Why did you travel to {ATTRIBUTE_1} last year.
Or:
Why did you travel to {TOKEN:ATTRIBUTE_1} last year.
Depends whether your survey is anonymous or not.

If I misunderstood your desire please provide a sample survey (*.lss)

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ejosepintog
  • ejosepintog's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168772 by ejosepintog
Replied by ejosepintog on topic Dynamic parameters on surveys by participants?
Hi, thanks for the answer.

I have this to do some test in my survey "{ATTRIBUTE_1} -- {TOKEN:ATTRIBUTE_1}".

The first time it worked, then I stopped the survey to make some changes, and when I started it again, the application replaces "{TOKEN: ATTRIBUTE_1}" for nothing.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168775 by holch
You have a space in your last {TOKEN: ATTRIBUTE_1}, check if this is also the case in your questionnaire.

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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168777 by Joffm

"{ATTRIBUTE_1} -- {TOKEN:ATTRIBUTE_1}".

????

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).


manual.limesurvey.org/Expression_Manager#Access_to_Variables

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose