Buttons and processes
You can learn more about:
This feature is available with Orbeon Forms 4.2 and newer.
This documentation describes how to configure the behavior of the buttons that appear at the bottom of the Form Runner detail page, whether in
viewmode. Here is an example of such buttons:
Example of Form Runner buttons
A "process" consists in a list of actions, or steps, which are executed by Form Runner, typically when the user presses a button. For example, a process might say: "when the user presses this button, validate the form data, then save it to the database".
With Orbeon Forms, processes are configurable. They are defined separately from buttons, but can be linked to buttons. Orbeon Forms comes with predefined processes for some common tasks, such as saving form data, but you can write your own processes.
A process is automatically associated with a button by name when using the following properties:
<property as="xs:string" name="oxf.fr.detail.buttons.acme.order">
summary clear pdf save-final wizard-prev wizard-next review
Here the following buttons get associated with processes of the same name defined in separate properties:
clearbutton is not implemented as processes but handled directly by Form Runner. This is also the case of the
tiffbuttons, until Orbeon Forms 2016.3. [SINCE Orbeon Forms 2017.1] The
tiffbuttons are implemented using the
So how do you customize processes? Say you want to specify a couple of buttons on your "acme/hr" form. Like above, you define a property:
<property as="xs:string" name="oxf.fr.detail.buttons.acme.hr">
This places a
sendbutton on the page. (Prior to Orbeon Forms 2021.1, use the
save-draftbutton/process name instead of
save-progress.) Their default labels are "Save" and "Send". Each button is automatically associated with processes of the same names,
send. These particular button and process names are standard, but we can customize them specifically for our form. Again, this is done with a property:
<property as="xs:string" name="oxf.fr.detail.process.send.acme.hr">
Button labels can be overridden as well:
With this, we have overridden the label of the "Send" button in general for all forms which are displayed in the english local.
Another approach would be to create an entirely custom button instead of reusing the name
send. Just pick a button/process name, say
foo, and then:
footo the list of buttons for the form
- define a button label for
- define a process for
NOTE: With Orbeon Forms 4.5.x and earlier, the property must be
oxf.fr.resource.*.*.en.detail.buttons.send. With Orbeon Forms 4.6 and newer, the
detailtoken can and should be omitted.