Wizard mode

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

Wizard mode

Lomobob
Hi,

In the wizard mode, you have to click on the left menu section title to navigate in the form, and you can enable "previous" and "next" button, and then use them.

Is there another possibility to navigate, something like an action that would set a value ? For example, let's say we have 5 sections, and depending on some answer, we would like to go directly from the 2nd section to the 5th by clicking on a custom button, is that possible ?

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].
Reply | Threaded
Open this post in threaded view
|

Re: Wizard mode

Erik Bruchez
Administrator
There is currently no documented API to do this, but using the XForms setfocus action to focus on a control which is on a hidden wizard page will show that page. Maybe you could use this?

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: Wizard mode

Lomobob
Ok, I'll try that one. When you say that there is currently no documented API, do you maybe mean that there will be some one day ?

Thanks again.

On Sat, Sep 20, 2014 at 12:14 AM, Erik Bruchez <[hidden email]> wrote:
There is currently no documented API to do this, but using the XForms
setfocus action to focus on a control which is on a hidden wizard page will
show that page. Maybe you could use this?

-Erik

--
View this message in context: http://discuss.orbeon.com/Wizard-mode-tp4658976p4658987.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
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].

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: Wizard mode

Alessandro  Vernet
Administrator
Hi Lomobob,

There could indeed be such an API, but at this point it isn't planned. It could be a function you call from XPath [1], or an action you can call from a process [2]. Right now you can't call processes from buttons that are "inside" the form, just from those at the bottom of the form, but that limitation could clearly be lifted.

[1] https://github.com/orbeon/orbeon-forms/wiki/XForms-~-XPath-Function-Library
[2] https://github.com/orbeon/orbeon-forms/wiki/Form-Runner-~-Buttons-and-Processes

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