no validation on page load

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

no validation on page load

Henk Visser
Hi,

I'm using schema validation and I want the validation to be triggered only on form submission. Problem is that validation is triggered right on page load. How can this be changed?

Thanks and kind regards,

Henk

Reply | Threaded
Open this post in threaded view
|

Re: no validation on page load

Alessandro  Vernet
Administrator
Hi Henk,

You are asking this in the context of a form you are writing "by hand", not creating with Form Builder, right? The XForms engine will validate fields as users interact with the form no matter what, but you could:

- add a class on the document element
- write CSS that hides alerts when that class is present
- remove it on form submission, so the alerts show

Is this something that could work for you?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet