- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Jump to individual question group a survey with customized URL
- lauriek334
- Topic Author
- Offline
- New Member
Less
More
9 years 1 month ago #116743
by lauriek334
Jump to individual question group a survey with customized URL was created by lauriek334
We wish to use LimeSurvey to present customized intervention questions to research study participants. Ideally we would like to design a survey with multiple question groups and be able to show a targeted question group to a user by using a custom URL which will open up the survey and present the user with the first question of a particular question group. Is this possible?
Alternatively, we will create a set of small surveys each with a single question group and a set of questions within that the group.
Any advice/comments would be much appreciated.
Alternatively, we will create a set of small surveys each with a single question group and a set of questions within that the group.
Any advice/comments would be much appreciated.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
9 years 1 month ago #116744
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 Jump to individual question group a survey with customized URL
I assume that you know the participants and what question groups they should see. In this case you could work with tokens and custom attributes. Based on the attribute you could create conditions or expressions, that will hide the non relevant questions for this specific type of person.
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.
- lauriek334
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
9 years 1 month ago #116751
by lauriek334
Replied by lauriek334 on topic Jump to individual question group a survey with customized URL
Yes we do know the participants and we have logic to decide which question groups the participants should see. So it looks like we could create a set of tokens for each of the users and then create a URL with the "/token/{token}" appended to the end of the URL for the active survey. This will give us the ability to present the survey to an authenticated user. I am not sure how we would pass in custom attributes in as part of the URL to cause a jump to a specific question group. Are there any examples of how this might be done?
Additionally, am I right in thinking that - If we wish to force the user to see a question group multiple times, we will need to create a unique token for each repeat visit.
Additionally, am I right in thinking that - If we wish to force the user to see a question group multiple times, we will need to create a unique token for each repeat visit.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
9 years 1 month ago #116754
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 Jump to individual question group a survey with customized URL
You'll find more information on tokens and how the work here:
manual.limesurvey.org/Tokens
And in specific the custom (user defined) attributes:
manual.limesurvey.org/Tokens#User-defined_attribute_fields
So you would create a token field that defines which questions groups a person with a specific attribute value can see. E.g.
Everyone who has the code "A" will see question group 1 and 2, everyone who has the code "B" will see group 3 and 4 and everyone who has code "B" will see group 1 and 4. Then you would create the conditions or even better expressions for each question group in your survey and hide or show the question group, depending on the attribute value.
manual.limesurvey.org/Tokens
And in specific the custom (user defined) attributes:
manual.limesurvey.org/Tokens#User-defined_attribute_fields
So you would create a token field that defines which questions groups a person with a specific attribute value can see. E.g.
Everyone who has the code "A" will see question group 1 and 2, everyone who has the code "B" will see group 3 and 4 and everyone who has code "B" will see group 1 and 4. Then you would create the conditions or even better expressions for each question group in your survey and hide or show the question group, depending on the attribute value.
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.