- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Fill survey fields with LimeSurvey participants information automatically
5 months 3 weeks ago - 5 months 3 weeks ago #238939
by serbarbos
Please help us help you and fill where relevant:
Your LimeSurvey version: Versión 2.72.5+171121
Own server or LimeSurvey hosting: Own server
Survey theme/template: Flat and modern
==================
Hello.
I am new in LimeSurvey so I need your help.
I have just created a new survey with fields: name, lastname, etc.
In the other hand I have added some participants to my survey.
Now what I want is that when a participant logs in the survey (user has a password assigned), the field related, for example with name, gets filled with the name set for the partipant in the system.
For example the Name field should be filled automatically with the string NameUserTest that is the name of the user that is loged into the survey.
Is it possible to do that in LimeSurvey?. In case that it is possible. How can I do that?
Your LimeSurvey version: Versión 2.72.5+171121
Own server or LimeSurvey hosting: Own server
Survey theme/template: Flat and modern
==================
Hello.
I am new in LimeSurvey so I need your help.
I have just created a new survey with fields: name, lastname, etc.
In the other hand I have added some participants to my survey.
Now what I want is that when a participant logs in the survey (user has a password assigned), the field related, for example with name, gets filled with the name set for the partipant in the system.
For example the Name field should be filled automatically with the string NameUserTest that is the name of the user that is loged into the survey.
Is it possible to do that in LimeSurvey?. In case that it is possible. How can I do that?
Last edit: 5 months 3 weeks ago by serbarbos.
Please Log in to join the conversation.
5 months 3 weeks ago #238940
by holch
First of all, this installation is now over 5 years old and hasn't received any update, bug or security fix for over 5 years. Considering that you are working with personal data here, I think it is important to update to the latest LS3 or better LS5 version.
Now to your question: From what I understand you have set the survey to closed / token based, you have created participants in the participants table (which you call users), they have a token (which you call password) and you have saved some fields like name, lastname, etc.
You want to pipe this information that is already available in the participant table into the survey, which is possible.
You should be able to pipe the stored data into the questionnaire e.g. as default answer by using something like {TOKEN:ATTRIBUTE1}, {TOKEN:LASTNAME}, {TOKEN:EMAIL} etc.
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 Fill survey fields with LimeSurvey participants information automatically
Versión 2.72.5+171121
First of all, this installation is now over 5 years old and hasn't received any update, bug or security fix for over 5 years. Considering that you are working with personal data here, I think it is important to update to the latest LS3 or better LS5 version.
Now to your question: From what I understand you have set the survey to closed / token based, you have created participants in the participants table (which you call users), they have a token (which you call password) and you have saved some fields like name, lastname, etc.
You want to pipe this information that is already available in the participant table into the survey, which is possible.
You should be able to pipe the stored data into the questionnaire e.g. as default answer by using something like {TOKEN:ATTRIBUTE1}, {TOKEN:LASTNAME}, {TOKEN:EMAIL} etc.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: Scott.McIntire
Please Log in to join the conversation.
5 months 3 weeks ago #238961
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 Fill survey fields with LimeSurvey participants information automatically
To add to Holch's comment - if the survey is non-anonymous, you don't need to load survey questions, you can download the token values with the survey data.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
5 months 3 weeks ago #239026
by serbarbos
Replied by serbarbos on topic Fill survey fields with LimeSurvey participants information automatically
Thank you so much Holch for the information, I could solve my problem.
Please Log in to join the conversation.