Skip to content Skip to sidebar Skip to footer

Usercreationform Show Error When Fields Are Empty

I'm using Django built in UserCreationForm. I want to show message under the field when that field is empty and user tring to submit form. Unfortunatly I see only built-in behavior

Solution 1:

You need to turn off the behaviour in the HTML itself, by using novalidate in the form element.

<form action="whatever" method="POST" novalidate>
    ...
</form>

Post a Comment for "Usercreationform Show Error When Fields Are Empty"