-
-
Notifications
You must be signed in to change notification settings - Fork 19
🐛 Bug: "Next" button remains enabled after deleting answers #1858
Copy link
Copy link
Open
Labels
bugfeature: letter generatorissue level: Mediumissues that are of medium difficultyissues that are of medium difficultypriority: lowrole: developmentanything related to codeanything related to coderole: frontendsize: 1ptcan be done in 6 hours or lesscan be done in 6 hours or less
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
bugfeature: letter generatorissue level: Mediumissues that are of medium difficultyissues that are of medium difficultypriority: lowrole: developmentanything related to codeanything related to coderole: frontendsize: 1ptcan be done in 6 hours or lesscan be done in 6 hours or less
Type
Projects
- StatusShow more project fieldsPrioritized Backlog
Overview
On these pages:
/form/whyandform/goals, when a user fills out required answers and then deletes them, the "Next" button remains enabled, allowing progression to the next step even though required fields are empty.⚙️ Steps to Reproduce
Expected Behavior
The "Next" button should be disabled (lavender) when any required fields are empty.
🖼️ Screenshot
When the "Next" button is disabled, it appears lavender.
When enabled, it appears purple.
In the screenshot, the questions are blank, but the button is still purple, allowing progression.
✅ Action Items
Notes
Perhaps this issue could be part of a larger Validation Epic.
Issue #1822 also falls under this category.
Currently, field validation only checks whether the input length is greater than one character.
Validation could be improved by:
For reference, the Contact Form implements validation using React Hook Form and Zod for schema validation and form state management. Those deps can be reused to handle the Letter Form and the Contact Form can serve as an example.