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

Feat: Add ability to show/hide Null Values #6

Merged
merged 2 commits into from
Jul 22, 2021
Merged

Conversation

FireJuun
Copy link
Contributor

@FireJuun FireJuun commented Jul 22, 2021

Description

This PR allows for the customization of answer options that input a code as a response. Prior to this implementation, all choice options (displayed with radio buttons) would default to show a blank radio button at the top of each answer choice. An image example of this is shown below:

showNullAnswerChoices-true

By setting the named parameter showNullAnswerChoices to false...

QuestionnaireScrollerPage(
              questionnaireTheme: const FDashQuestionnaireTheme(
                showNullAnswerChoices: false,
              ),
              ...

All choice / radio button questions have one fewer question, as the null values on top are not shown. This questionnaireTheme variable may be set within QuestionnaireScrollerPage, QuestionnaireScroller, QuestionnaireStepperPage, or QuestionnaireStepper classes...depending on UI requirements of your survey.
showNullAnswerChoices-false

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@tiloc tiloc merged commit 9207a74 into tiloc:main Jul 22, 2021
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

Successfully merging this pull request may close these issues.

2 participants