forms - django: raise an error similar to EmailField -
when using email field, attempting submit form invalid email address raises , error this:
what this:
doesn't reload page, rather doesn't submit @ , instead displays error
the look
here able accomplish name , password (charfields)
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
Post a Comment