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
      <div class="grid-{{15 + extra_width}}">{{field.display(**ctx)}}
        {% if field.real_valid %}
          <span id="rw_{{field.name}}"></span>
        {% endif %}
      </div>
```
We set `real_valid=True` if we need to enable real time validation for a form 
widget

What would you suggest. going with something like this?




---

** [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:19 PM UTC
**Owner:** nobody


It would be helpful to show password requirements (aka min # of chars) on the 
password change form.  And account creation.


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to