- Posts: 36
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Prefill question with token attribute in anonymous survey
- karencheah
- Topic Author
- Offline
- Junior Member
Less
More
9 years 9 months ago #111032
by karencheah
Prefill question with token attribute in anonymous survey was created by karencheah
Is it possible to pre fill a question with the value from a token attribute in an anonymous survey? The scenario I have is as such.
I have a list of tokens of staff in a company who are going to take the survey. Their organisational chart is quite wide and complex so I have a field in the token to capture this info (division/department/team) together with their names and emails. When they start their survey, I would like the division/department/team question to be pre filled with the info from the token. This will hopefully minimise mistakes in this question.
Please advise if this is a possibility. Or if it can be done some other way, I'm willing to check that out too. Thanks in advance.
-Karen
I have a list of tokens of staff in a company who are going to take the survey. Their organisational chart is quite wide and complex so I have a field in the token to capture this info (division/department/team) together with their names and emails. When they start their survey, I would like the division/department/team question to be pre filled with the info from the token. This will hopefully minimise mistakes in this question.
Please advise if this is a possibility. Or if it can be done some other way, I'm willing to check that out too. Thanks in advance.
-Karen
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
9 years 9 months ago #111033
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 Prefill question with token attribute in anonymous survey
No, in anonymous surveys there is no connection between the tokens and the data.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 2
9 years 9 months ago #111057
by karencheah
Replied by karencheah on topic Prefill question with token attribute in anonymous survey
Thanks for the confirmation, it looks like we'll have to do it non-anonymous then.
The topic has been locked.
- fransmarcelissen
- Offline
- Premium Member
Less
More
- Posts: 113
- Thank you received: 46
9 years 9 months ago #111075
by fransmarcelissen
Replied by fransmarcelissen on topic Prefill question with token attribute in anonymous survey
I think what you need can be done using an url parameter (
www.hoeperdepoep.com/index.php/survey/in...en/3akuu8hh85?team=1
Now the survey kan be anonimous while still knowing the team.
Success!
Frans
Success!
Frans
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 2
9 years 9 months ago #111079
by karencheah
Replied by karencheah on topic Prefill question with token attribute in anonymous survey
Thanks for your suggestion, Frans. I think that's a great idea. Is there a way to prevent user from editing the URL? Or perhaps the parameter can be passed some other way other than via the URL?
The topic has been locked.
- fransmarcelissen
- Offline
- Premium Member
Less
More
- Posts: 113
- Thank you received: 46
9 years 9 months ago #111081
by fransmarcelissen
Replied by fransmarcelissen on topic Prefill question with token attribute in anonymous survey
Hi Karen,
I do'nt think there is a way to prevent the user from editing the url. But you could test in limesurvey whether the value is set/whether the user changed the url. And you could also change the name of the question in something like "Yjyasasj", so that it is not clear to the user that he enters the team number, or scramble the value ("876ku" in place of 1), so that he cannot manipulate the value.
Success!
Frams
I do'nt think there is a way to prevent the user from editing the url. But you could test in limesurvey whether the value is set/whether the user changed the url. And you could also change the name of the question in something like "Yjyasasj", so that it is not clear to the user that he enters the team number, or scramble the value ("876ku" in place of 1), so that he cannot manipulate the value.
Success!
Frams
The following user(s) said Thank You: karencheah
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 2
9 years 9 months ago #111113
by karencheah
Replied by karencheah on topic Prefill question with token attribute in anonymous survey
Thanks for your ideas, Frans. Will keep them in mind.
The topic has been locked.