I am using yForm (Orbeon Form Builder) to generate form run time, where we have a requirement to set different custom success message for each form (eg: "Your contact form save successfully", "Your address form…"). I would like to configure this success message from Form Builder, so that whenever an end user saves that form, it can see the corresponding custom message.
I'll assume that by "success message", you are referring to the message shown next to the buttons that are at the bottom of the form.
This message is shown when the success-message()
action runs. Actions are executed by a processes, which, at the time of this writing, can't defined in Form Builder, but are instead defined in your properties-local.xml
. If you are new to this, I'd recommend you have a look at the Buttons and processes section of the documentation.
来源:https://stackoverflow.com/questions/39234468/xbl-orbeon-custom-control-to-show-different-success-message-on-form-save