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

Message for successful validation of separate fields #291

Open
phoenfrisur opened this issue Apr 20, 2023 · 0 comments
Open

Message for successful validation of separate fields #291

phoenfrisur opened this issue Apr 20, 2023 · 0 comments
Labels

Comments

@phoenfrisur
Copy link

phoenfrisur commented Apr 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants