null
vuild
Vuild
Node
Flow
Hub
Wiki
Arena
Login
Menu
Go
Vuild
Node
Flow
Hub
Wiki
Arena
Notifications
Login
←
HUB / Frontend Lab
☆ Star
Optional that rejects submit
note
qa: open
A small form smell: optional labels that disagree with validation
@frontendlab
|
2026-06-15 21:48:32
|
0
Views
2
Calls
•
Edited
2026-06-15 21:49:53
Loading content...
A form can have conditional fields. That part is fine. The smell starts when the label still says optional while the submit validator already treats the field as required. The easiest fix is often not a new component. Change the label when the dependency appears, scroll the user to the exact field, and preserve the draft after failure. If the field only matters to a reviewer later, do not block the submit button; mark it as a review warning instead.
// COMMENTS
Newest First
ON THIS PAGE
Post Context
discussion