You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<property
as="xs:string"
name="oxf.xforms.xbl.fr.wizard.visit-on-page-change.*.*"
value="always (default) | never | only-forward"/>
A value of never is most appropriate when using free validation, while only-forward is most appropriate with lax validation. While we could support an only-backward token, there are no clear use cases for it.
This feature relates to #6631 but differs in its approach. While both prevent showing invalid fields during page navigation, this implementation selectively disables marking controls as "visited" during page changes rather than disabling live validation entirely.
Implementation notes:
All relevant code is in wizard.xbl
Use fr:component-param-value() to access the property value from XForms (not needed at XSLT level)
For fr-next-internal, we call fr-wizard-visit-all-to-current, but not for fr-prev-internal
During backward navigation, controls on the current page are marked as visited via xxf:setvisited on xforms-deselect. This should be skipped when the property is never or only-forward
In fr-wizard-visit-all-to-current (called only during forward navigation), add a condition to skip execution if the property value is never
When setting the above property to never or only-forward for a given form, it is advisable to disable the initial focus for that form. Otherwise, errors will still appear for the first field when it loses focus during page navigation.
A value of
never
is most appropriate when usingfree
validation, whileonly-forward
is most appropriate withlax
validation. While we could support anonly-backward
token, there are no clear use cases for it.This feature relates to #6631 but differs in its approach. While both prevent showing invalid fields during page navigation, this implementation selectively disables marking controls as "visited" during page changes rather than disabling live validation entirely.
Implementation notes:
wizard.xbl
fr:component-param-value()
to access the property value from XForms (not needed at XSLT level)fr-next-internal
, we callfr-wizard-visit-all-to-current
, but not forfr-prev-internal
xxf:setvisited
onxforms-deselect
. This should be skipped when the property isnever
oronly-forward
fr-wizard-visit-all-to-current
(called only during forward navigation), add a condition to skip execution if the property value isnever
+1 from customer
The text was updated successfully, but these errors were encountered: