- **status**: open --> in-progress
---
** [tickets:#7459] Show password requirements on forms**
**Status:** in-progress
**Milestone:** unreleased
**Created:** Wed Jun 11, 2014 03:46 PM UTC by Dave Brondsema
**Last Updated:** Thu Oct 18, 2018 05:10 PM UTC
**Owner:** nobody
It would be
Yeah I checked `forge_form` is very generic that's why I told this is reusable
;) . Nice idea with html element default validation tricks. we will only do for
password field then. Binding event with password field is okay I mentioned how
we can display real-time message. What would you suggest
`forge_form.html` is very generic and ends up used in lots of places, so I
would prefer doing it only for the `PasswordChangeBase`/`PasswordChangeForm`
and `RegistrationForm` forms that need it. And now that I think about it, I
think browser validation can do a lot of this for us. `minlength`
Hi.. Dave
We can easily add reusable message for real-time validation in forms by doing
some modifications at `forge_form.html` as per below. And validation logic can
be done as `extra_js` snippet maybe.
```python
{{field.display(**ctx)}}
{% if field.real_valid %}
Also checking that the new passwords match each other would be nice.
---
** [tickets:#7459] Show password requirements on forms**
**Status:** open
**Milestone:** unreleased
**Created:** Wed Jun 11, 2014 03:46 PM UTC by Dave Brondsema
**Last Updated:** Tue Oct 16, 2018 04:18 PM UTC
**Owner:**
Right. One simple option would be to show the requirement right away as plain
text. JS realtime validation upon focus would be nice too.
---
** [tickets:#7459] Show password requirements on forms**
**Status:** open
**Milestone:** unreleased
**Created:** Wed Jun 11, 2014 03:46 PM UTC by Dave
This is implemented as backend validation. when I enter few chars in register
form I got error message "Enter a value 6 characters long or more". But user
need to click register button to see how many chars required minimum. You mean
we can display before that ? maybe when user focuses