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
avernet
changed the title
"Review" makes all the section accessible in wizard validated mode
"Review" makes all the sections accessible in wizard validated mode
Jun 5, 2015
What is the ideal mechanism to achieve this? What we want to say is: "Hide or disable this button until such and such condition is met."
That condition here is transient: it's whether the user has reached (we use xxf:visited()) the last page of the wizard. Only the wizard knows the id to check to know whether the last section is visited.
How can we let the button know about this condition? I would think we would want to express that in terms of a function like fr:wizard-reached-last-page().
My comment above is not necessarily wrong. We have at least 2 different possibilities:
Show the button if all sections have been visited.
Show the button only when we are on the last page of the wizard.
We already expose publicly the fr-wizard-prev and fr-wizard-next buttons, which are within the wizard, and make them accessible via xxf:binding() so we can have external buttons which are enabled/disabled at the same time.
We could have another such public binding which controls the visibility of a wizard-submit button, for example.
We need a mechanism not to show the review and save buttons, unless we are on the last page.
+1 from community
The text was updated successfully, but these errors were encountered: