survey_kit
survey_kit copied to clipboard
Survey answer access
Hi,
Can you show me how to access the survey answers with sample code in Dart/Flutter?
Thanks, Mike
Hello,
I've also been struggling to access scale question answers. I want to add them up and display the score on the completion page.
Thank you!
Sorry for the late response! I will provide better documentation to the answers in the next release.
onResult: (result) {
for (var stepResult in result.results) {
for (var questionResult in stepResult.results) {
// Here are your question results
}
}
}
Normally the questionsResults should only contain one item.
Hi,
Thanks for your response! Great work on the library.
Is there an easy way to fetch a JSON of the survey questions and responses in onResult?
Thanks, Mike
On Oct 11, 2021, at 12:58 AM, Marvin März @.***> wrote:
Sorry for the late response! I will provide better documentation to the answers in the next release.
onResult: (result) { for (var stepResult in result.results) { for (var questionResult in stepResult.results) { // Here are your question results } } } Normally the questionsResults should only contain one item.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quickbirdstudios/survey_kit/issues/39#issuecomment-939781774, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADJACZM43KTADN2YKQHITUGKKJ3ANCNFSM5EUVE2QQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi,
currently the steps are not part of the result but we will change that in the future. Right now also the results are not serializable out of the box. You need to parse them yourself:
Hi,
We can access the result when every question is answered? Because we want to continue from the question left when the user enters into the application again.
Thanks.
Hi,
I can not see the results in last widget called by CompletionStep function. Are there anything that we need to do to get the result in the last screen?
Thank you