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

Conditional list items that should be hidden are shown if there are errors on the page #1070

Open
ziggy-cyb opened this issue May 15, 2023 · 0 comments

Comments

@ziggy-cyb
Copy link
Collaborator

Describe the bug
If there is a list with conditional list items, and this is displayed on a page, if the page is submitted but there are other errors on the page, the hidden list items will be shown. This can cause confusion for the user in situation where they are being given a set of instructions based on their answers.

To Reproduce
Steps to reproduce the behavior:

  1. Create a form, give the first page a yes/no field, create a condition which is true if the answer to the yes/no field is yes
  2. Create a list, with two items, one with the previously created condition and one without
  3. Add the list to the second page, as well as a required checkbox
  4. Preview the form in the runner, setting the yes/no field on the first page to no
  5. Navigate to the second page, and see that the conditional item is hidden. Attempt to continue to the summary page without checking the checkbox, and see that the page reloads with the required error and the conditional list item is shown.

Expected behavior
The hidden list item should continue to be hidden on page reloads.

Screenshots
first-page-with-no-selected
second-page-showing-only-one-list-item
second-page-with-error-and-both-list-items-shown

Desktop (please complete the following information):

  • OS: MacOS Ventura 13.3.1
  • Browser: Chrome
  • Version: 113
@ziggy-cyb ziggy-cyb moved this from 🆕 New to 📋 Backlog in XGovFormBuilder kanban May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant