As Orbeon forms normally operate, when a user changes from one field to another, the validation of the first field gets triggered, which is totally ok in general.
I'm facing a requirement that as-you-type validation (required fields) should not be performed for those fields which were and remained empty, i.e. if a user loads the form and only clicks in and out of the field, or moves over it by Tab.
So in case those fields remain empty, they will be validated at the end, when the user submits the entire form.
Is there a possibility to limit Orbeon as-you-type validation like that, not do it for empty fields?
Right now, you can't switch to the behavior you're describing, say, by setting a property. But I see how it could make sense, in some cases. As you said, the idea is that you wouldn't show errors for a field if the user never typed anything in it. For instance, with a required field:
Implementing this, could be done by changing, in the XForms engine, the notion of "visited" to match the above description. The error summary would be updated accordingly, as it uses xxf:visited()
to decide which errors to show.