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

First question textChoices repeating for every question when answerFormat: SingleChoiceAnswerFormat has been added for multiple steps #13

Closed
sohail0992 opened this issue Jun 21, 2021 · 5 comments · Fixed by #14
Labels
bug Something isn't working

Comments

@sohail0992
Copy link

sohail0992 commented Jun 21, 2021

I have added the question to survey kit in below format.


   steps.add(InstructionStep(
      title: 'Welcome to Lab Survey',
      text: 'Get ready for a bunch of questions!',
      buttonText: 'Let\'s go!',
    ));
    steps.add(
      QuestionStep(
        title: 'Done?',
        text: 'We are done, do you mind to tell us more about yourself?',
        answerFormat: SingleChoiceAnswerFormat(
          textChoices: [
            TextChoice(text: 'Yes', value: 'Yes'),
            TextChoice(text: 'No', value: 'No'),
          ],
        ),
      ),
    );
    steps.add(
      QuestionStep(
        title: 'Done?',
        text: 'kjdsfkjaskdfj?',
        answerFormat: SingleChoiceAnswerFormat(
          textChoices: [
            TextChoice(text: 'none', value: 'none'),
            TextChoice(text: 'none', value: 'noe'),
          ],
        ),
      ),
    );

and returning the task to suveyKit task,

 var task = NavigableTask(id: TaskIdentifier(), steps: steps);
 return task;

Issue is on pressing next, the question changes but options remain the same.

@sohail0992 sohail0992 changed the title textChoices repeating First question textChoices repeating for every question. Jun 21, 2021
@sohail0992 sohail0992 changed the title First question textChoices repeating for every question. First question textChoices repeating for every question when answerFormat: SingleChoiceAnswerFormat has been added for multiple steps Jun 21, 2021
@Numoy
Copy link
Collaborator

Numoy commented Jun 22, 2021

I merged the changes. Thanks you @zeshuaro. The changes are now in the develop branch.

As soon as we release a new version to pub.dev we will merge it into main and close this issue.

@Numoy Numoy added the bug Something isn't working label Jun 22, 2021
@sohail0992
Copy link
Author

sohail0992 commented Jun 28, 2021

Can you please provide us an ETA for the release? Our release is dependent on this fix. Thank you.

@zeshuaro
Copy link
Contributor

zeshuaro commented Jun 28, 2021

@sohail0992 You can always install packages directly from GitHub, something like this should allow you to install the package from the develop branch:

survey_kit:
  git:
    url: https://github.com/quickbirdstudios/survey_kit.git
    ref: develop

@Numoy
Copy link
Collaborator

Numoy commented Jun 28, 2021

We will most probably release a new version at the end of the week.

@Numoy
Copy link
Collaborator

Numoy commented Jul 1, 2021

0.0.11 is released which includes the fix of this issue.

@Numoy Numoy closed this as completed Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants