Open kamleshvisvkarma opened 9 months ago
https://stackblitz.com/edit/form-validation-reactjs?file=src%2FApp.js
Whatever validation we want, you can see it by opening this link. If the submit button is not disabled or when I click on the submit button the validation message of the required field is shown.
Is there any update on this... @Nikhil-Nandagopal @somangshu @kamakshibhat-appsmith @LagunaElectric
@kamleshvisvkarma we don't have this on our roadmap yet.
Is there an existing issue for this?
Summary
Do we have any plan to show validation on submit button?
Instead of disabling the submit button, we need to keep it enabled and show validation on its click.
Because if any field is accidentally left out in case of disabling the button. In this case, the button remains disabled and the user does not know where the error is
Why should this be worked on?
Disabling the submit button until all form fields are correctly filled can be frustrating for users, especially if they make a mistake and need to go back and fix it.
When users fill out a form and click submit, they receive instant feedback on any errors they may have made.
By showing validation messages next to the relevant fields or at the top of the form, users receive clear guidance on what needs to be corrected.
Users with disabilities, such as those relying on screen readers, may struggle to understand why a submit button is disabled. Providing visible validation messages ensures accessibility for all users and helps create a more inclusive experience.
Allowing users to submit the form even if there are errors encourages them to complete the form in one go, rather than abandoning it due to frustration with disabled buttons or unclear error messages.