Validation on field

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Validation on field

danieldotnet
Hello

I noticed that validations on a field require an entry (although not defined as a mandatory field). If the field is empty, an error occurs. But it may be empty. Is there a function here so that the validation is only executed if the field is not empty?

Best regards,
Daniel
Reply | Threaded
Open this post in threaded view
|

Re: Validation on field

Alessandro  Vernet
Administrator
Hi Daniel,

Yes, what you suggest is very reasonable: if a filed isn't required, and a user left it empty, then the filed should be valid, even if there are validation constraints defined on the field. We have an RFE for this, with more information, and I've added a +1 from you.

https://github.com/orbeon/orbeon-forms/issues/3156

-Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Validation on field

danieldotnet
Thank you Alex.