normalize-space() as default behavior to "required"
Posted by npujol73 on Jan 12, 2010; 2:34am
URL: https://discuss.orbeon.com/normalize-space-as-default-behavior-to-required-tp1011785.html
Hi,
I was wondering if there is a global setting somewhere that would allow orbeon forms to NOT consider blanks as valid input to "required" field. I would think this is extremely common and in most cases a series of blank does not consistute a valid input. This would avoid having to do do this:
<xforms:bind nodeset="" required="true()" constraint="string-length(normalize-space(.))>0"/>
Or am I may be missing something obvious or a better alternative?
Thanks for any feedback.