- Posts: 4
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I pre-fill questions with data from another survey?
- dtian
- Topic Author
- Offline
- New Member
Less
More
9 years 4 months ago #113987
by dtian
Can I pre-fill questions with data from another survey? was created by dtian
Hi, I have a questions. Suppose I have two surveys. One is done and after several months, I need to do the second survey. How can I use the answers from the first survey to pre-fill the second survey?
Thanks and best wishes!
Thanks and best wishes!
The following user(s) said Thank You: orak
The topic has been locked.
- orak
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
9 years 4 months ago - 9 years 4 months ago #113988
by orak
Replied by orak on topic Can I pre-fill questions with data from another survey?
Hello,
I would like to extend the question.
It is possible to let the user of a survey choose from a list of "up to now" given answers - or - if there is no
matching answer available in the moment, add a new one.
Example:
What is your favorite fruit
drop down with the answers given: eg banana, orange, cherry
or input another fruit which you like
I hope I explained my question understandable, my knowledge in English could be better
Thanks
Karsten
I would like to extend the question.
It is possible to let the user of a survey choose from a list of "up to now" given answers - or - if there is no
matching answer available in the moment, add a new one.
Example:
What is your favorite fruit
drop down with the answers given: eg banana, orange, cherry
or input another fruit which you like
I hope I explained my question understandable, my knowledge in English could be better
Thanks
Karsten
Last edit: 9 years 4 months ago by orak. Reason: typo
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
9 years 4 months ago - 9 years 4 months ago #113995
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 Can I pre-fill questions with data from another survey?
There is no built-in facility in LimeSurvey access previously submitted cases, either in the current or other surveys. You will need to make an AJAX call to a remote PHP script that queries the database.
.
.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 4 months ago by tpartner.
The topic has been locked.
- orak
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
9 years 4 months ago #114003
by orak
Replied by orak on topic Can I pre-fill questions with data from another survey?
thank you,
I have no problem to write an ajax query and i have no problem to write a php-script
which does the db-query.
But I have no idea how to integrate the ajax part into a survey.
Does there exist an interface to solve this task?
A short search via google leads not to a result. I have problems to find the
right words for my question when using google.
Karsten
I have no problem to write an ajax query and i have no problem to write a php-script
which does the db-query.
But I have no idea how to integrate the ajax part into a survey.
Does there exist an interface to solve this task?
A short search via google leads not to a result. I have problems to find the
right words for my question when using google.
Karsten
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
9 years 4 months ago #114026
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 Can I pre-fill questions with data from another survey?
You can place your JavaScript in the source of a question or group description -
manual.limesurvey.org/Workarounds:_Manip....29_in_LimeSurvey.3F
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: orak
The topic has been locked.