18F / crt-django

Moved to usdoj-crt/crt-portal
https://github.com/usdoj-crt/crt-portal
0 stars 2 forks source link

Add conditional logic to skip questions when they are not relevant #12

Open LindsayYoung opened 5 years ago

LindsayYoung commented 5 years ago

Narrative

As a person filling out the form, I don't want to answer questions that are not relevant to me.

Technical notes

Here is how to implement this feature with the form tools https://django-formtools.readthedocs.io/en/latest/wizard.html#conditionally-view-skip-specific-steps

you can see the current rules by looking at the visible field in the hawk yml https://github.com/usdoj/crt-portal/blob/396e2a80de0ac8ffeebb32210f6912ca8c6a651a/config/default/webform.webform.benevolent_hawk.yml

Acceptance criteria