call individual responses with RemoteControl2?

More
3 years 2 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!

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
3 years 2 months ago - 3 years 2 months ago #136738 by tpartner
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.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 3 years 2 months ago by tpartner.
The following user(s) said Thank You: jboogie21

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!