- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Dynamic parameters on surveys by participants?
- ejosepintog
- Topic Author
- Offline
- New Member
Less
More
5 years 11 months ago #168751
by ejosepintog
Dynamic parameters on surveys by participants? was created 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2738
5 years 11 months ago #168753
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Dynamic parameters on surveys by participants?
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
5 years 11 months ago #168756
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Dynamic parameters on surveys by participants?
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2738
5 years 11 months ago #168775
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Dynamic parameters on surveys by participants?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
5 years 11 months ago #168777
by Joffm
You read this in the manual?
manual.limesurvey.org/Expression_Manager#Access_to_Variables
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Dynamic parameters on surveys by participants?
????"{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.