Welcome to the LimeSurvey Community Forum

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

Updating a question's response via API?

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 years 4 months ago #161064 by blocka
We'd like to use LS for an event registration form.

In the end message, we'd display a barcode generated from survey and unique response ID. The attendee would then print the end page and bring that to the event.

What we'd like to do is have an Android app that will scan the barcode, and call back to LS (presumably via the API), and update within the associated response, a hidden survey question called "Attended" (for example).

First off, (a) is there a mechanism in the API to accomplish this, and (b) if you're reading this, and do Android app development and (a) is possible, I'd be interested in exploring the investment to accomplish this.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago - 6 years 4 months ago #161072 by tpartner
Replied by tpartner on topic Updating a question's response via API?

...and call back to LS (presumably via the API), and update within the associated response, a hidden survey question called "Attended" (for example).

You can update a response using the API update_response() method.

- api.limesurvey.org/classes/remotecontrol...thod_update_response

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 4 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose