When a user cancels a form in Webform Server the cancel message must be handled by the Forms Services Platform.
If the client is using Webform Server and the form contains a Cancel
button, then the ReturnDataPipe's cancelURL
parameter must be given the URL of the pipeline that handles the Canceled state.
ibm.ReturnDataPipe.samplePipeline.cancelUrl = string:/handleCancel
You must also create a pipeline that handles the canceled form.
Sample pipeline that handles a canceled form
The following sample pipeline demonstrates how the canceled form is handled and returns the string: "The form has been canceled.":
# HandleCancel Pipeline
ibm.HeadPipe.HandleCancel.connection = string:/handleCancel
ibm.HeadPipe.HandleCancel.pidOutputs.view = pipe:ibm.ReturnDataPipe.
ibm.HeadPipe.HandleCancel.pidOutputs.error = pipe:ibm.ReturnErrorPipe.
# Action branch
# View branch
ibm.ReturnDataPipe.HandleCancel.content = string:The form has been canceled.
# Error branch
ibm.ReturnErrorPipe.HandleCancel.errorFormat = string:html
Parent topic: Using Webform Server with the Forms Services Platform
Previous topic: Handling XFormsReplaceAll submissions