forms - django: raise an error similar to EmailField -


when using email field, attempting submit form invalid email address raises , error this:

enter image description here

what this:

  • doesn't reload page, rather doesn't submit @ , instead displays error

  • the look

here able accomplish name , password (charfields) enter image description here

the "a name needed!" , "this field required" messages display after form submitted, not sleek displaying without form needing submitted.

the popup see email not django validation. build in in-browser html5 email field checking (and older browsers not you).

and can't kind of validation in html5, checking field presents can add required attribute rendered input field.

there several ways add attibutes widgets in django. take how django forms show html required attribute? , select appropriate you.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -