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

In most modals that create an object, client-side validation is absent #844

Open
Ellen-Wittingen opened this issue Jan 14, 2023 · 0 comments

Comments

@Ellen-Wittingen
Copy link
Contributor

How to reproduce

Open a new object modal. For example, go to http://localhost:5000/activities and click on Nieuwe activiteit

Expected behaviour

When submitting the form with invalid/missing values the form should not be submitted and error messages should be shown beneath the invalid inputs. Like in here https://getbootstrap.com/docs/5.2/forms/validation/#supported-elements.

This can be implemented with https://getbootstrap.com/docs/5.2/forms/validation/

Current behaviour

The form is submitted and the modal is closed. The server sends back an error message, which is displayed in a toast to the user (see image).
So there is only server-side validation and the user has to fill in the form all over again and hope that the data is correct this time.

image

@Ellen-Wittingen Ellen-Wittingen changed the title In most modals that create an object, client-side validation is absemt In most modals that create an object, client-side validation is absent Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant