Skip to content

Instance of text choice #96

@Technorocker

Description

@Technorocker

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions