orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
518 stars 220 forks source link

UI to say add hard `maxlength` to fields #4147

Open ebruchez opened 5 years ago

ebruchez commented 5 years ago

This should probably be an option in addition to the "Maximum Length" common constraint. We could add a checkbox to say "prevent the user from typing more".

Currently, the max length entered in Form Builder is a constant, not a formula. So we could sync it relatively easy to simply copying the value to the xxf:maxlength attribute.

Once we allow a formula there, we'll need another way, because the formula will live in the binds and the xxf:maxlength in the view. We can probably defer this for now and just handle the constant case.

+1 from customer

ebruchez commented 5 years ago

+1 again from customer

ebruchez commented 5 years ago

Where do we put this option?

ebruchez commented 5 years ago

Is there is any use case to specifying xxf:maxlength independently from other constraints? I am tempted to say no, and that if so, for those cases, editing the source will remain an option.

ebruchez commented 3 months ago

+1 from customer for xxf:maxlength