Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

call individual responses with RemoteControl2?

  • jboogie21
  • jboogie21's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 10 months ago #136712 by jboogie21
Hello,

Can the Lime api be utilized to call an individual response from one survey to a different/separate survey? I don't think this is possible, but just wanted to confirm with folks more knowledgeable than I.

The use case is a user completes a pre-appt questionnaire. Then on yearly basis, they get a separate follow up questionnaire asking if anything has changed (where their previous responses would populate so the user could reference) as well as other questions.

thanks!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago - 7 years 10 months ago #136738 by tpartner
Replied by tpartner on topic call individual responses with RemoteControl2?
You may be able to do that with an AJAX call to a PHP script that uses the API export_responses_by_token() function to retrieve the response(s). Then use JavaScript to load the returned responses into the current survey questions.

A note about using the export_responses_by_token() function, don't forget to decode the results - www.limesurvey.org/forum/can-i-do-this-w...in-a-php-page#136470

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 10 months ago by tpartner.
The following user(s) said Thank You: jboogie21
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose