Skip to content

Message for successful validation of separate fields #291

Open

Description

@christoph-otte

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions