bootstrap-flask
bootstrap-flask copied to clipboard
Message for successful validation of separate fields
Dear all,
I've some trouble sending a message to the browser when the field validation succeeded, like the "Looks good!" message in https://getbootstrap.com/docs/5.0/forms/validation/#custom-styles that appears underneath the field after submitting the form.
It seems to me that I just need to find a way to include this div
underneath the <input>
tag:
<div class="valid-feedback">
Looks good!
</div>
I use the render_form
method
{{ render_form(form,
button_style='success',
button_size='block',
novalidate=True}}
Many thanks, Christoph