Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance of text choice #96

Open
Technorocker opened this issue Jan 18, 2023 · 0 comments
Open

Instance of text choice #96

Technorocker opened this issue Jan 18, 2023 · 0 comments

Comments

@Technorocker
Copy link

Technorocker commented Jan 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant