Validation errors are not associated with their fields
Fluent Forms 6.2.16 (Pro also active), WordPress 7.1.4, Chrome on Windows.
Steps to reproduce:
- Create a form with required text, email and textarea fields. Set validation messages to appear below the fields.
- Submit the empty form and inspect the fields and their error messages.
Actual: Fields receive aria-invalid="true" and messages have role="alert", but the messages have no IDs and the fields do not reference them with aria-describedby or aria-errormessage. The error is therefore not programmatically associated with its field when the user returns to it.
Expected: Associate each error with its field using a unique ID; preserve existing descriptions and remove the error reference when corrected. Please also consider multiple form instances and client/server validation.
This was observed on an existing site, not yet on a clean installation or with a human screen-reader test. A form-specific JavaScript workaround currently provides the association. Could you confirm the issue and consider a native fix?
i've passed this onto the developers