For custom Bootstrap form validation messages, you’ll 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. When attempting to submit, you’ll see the
:invalid
and :valid
styles applied to your form controls.
Custom feedback styles apply custom colors, borders, focus styles, and background
icons to better communicate feedback. Background icons for <select>
are only available with .form-select
, and not
.form-control
.
Examples
Invalid feedback
Valid feedback
Invalid feedback
Valid feedback