Hi there,
I've picked up a project that's using orbeon 3.7 with some customisations and where upgrading to the latest is not in scope as yet.
The question I have is for controlling the readonly of Next/Previous/Save buttons in a multi-step form.
Currently, validation errors are displayed per field via bind definitions in the model. e.g.,
<xforms:bind nodeset="instance('data-instance')">
<xforms:bind nodeset="UserDetails/Name" type="xs:string" required="true()" />
...
</xforms:bind>
But this doesn't currently stop the user from clicking through each step without filling anything in, nor from clicking the Save button at the end.
So I was reading the following post about disabling the save button...
But what I'd like to do (and which I'm not sure how to do) is disable the Next & (on the last step) Save buttons for each step while there are validation errors currently displayed for any of the currently visible fields.
In other words, what's the correct way to test for any validation errors amongst the 'AddressDetails' for example, ignoring validations for steps they haven't got to as yet?
<xforms:bind nodeset="instance('control-step-a-instance')/next-trigger" readonly="not(instance('data-instance')/AddressDetails/valid = 'true')"/>
Thanks!
--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].