-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
Hello, I'm just playing around with your example app, the getjsontask doesnt work but i'm using the getsampletask which does.
When i get to the end of the survey and press the submit button I get instance of 'TextChoice' instead of allergy. I updated the results method from another issue on here that was suggested to see results properly.
onResult: (SurveyResult result) {
for (var stepResult in result.results) {
for (var questionResult in stepResult.results) {
// Here are your question results
print(questionResult.result);
//print(questionResult);
}
}
Navigator.pushNamed(context, '/');
},
this is the console output. Id like to also point out that this includes a null for both the start and submit survey buttons at the beginning and end. Do we need to manually remove these entries
null
25
BooleanResult.POSITIVE
dsafgfd
3
[Instance of 'TextChoice'] << **Should say latex**
Instance of 'TextChoice' << **This is the boolean question about whether it can ask more about me, shouldnt that be a boolean or no response?**
TimeOfDay(19:15)
2023-01-10 00:00:00.000
null
My intention like most is to send the results to a user database. Am I trying to get the results incorrectly?
Thanks ahead for your help
Metadata
Metadata
Assignees
Labels
No labels