Removed unnecessary server-side validation subsection in the How it Works section

This commit is contained in:
Maria Stellini 2025-07-21 07:35:16 +02:00
parent a44456c1e1
commit a7977e19df

View File

@ -47,11 +47,6 @@ Heres how form validation works with Bootstrap:
</form>
```
### Server-side Validation
- For server-side validation, set `.is-valid` or `.is-invalid` classes on the form control based on the server response. This will show the appropriate feedback message without needing `.was-validated`.
- You can also use JavaScripts `setCustomValidity()` to set a custom error message. This will make the field invalid and show the `.invalid-feedback` message after validation is triggered.
## Custom styles
For custom Bootstrap form validation messages, youll need to add the `novalidate` boolean attribute to your `<form>`. This disables the browser default feedback tooltips, but still provides access to the form validation APIs in JavaScript. Try to submit the form below; our JavaScript will intercept the submit button and relay feedback to you. When attempting to submit, youll see the `:invalid` and `:valid` styles applied to your form controls.