Working with submit actions

Abstract

Use submit actions to trigger goals, to redirect, and/or to save form data.

You use the submit button for navigation (previous and next buttons), to submit the form, and/or to trigger submit actions. The submit button is located in the Structure section of the Form elements pane. When you drag a submit element to the canvas, you can name it, style it, and determine what happens after clicking the submit button. The options are Submit, Previous, or Next. Then you can assign one or more submit actions.

You can assign default submit actions to all submit buttons, whether they are actually submitting the form or whether they are used for navigation.  You can also create a custom submit action.

If you add more than one submit action, the order is important. The submit actions are executed in the order they are added to the submit button. The Redirect to page and the Redirect to URL actions abort the execution of subsequent steps. For example, if you place a redirect action before a save action, the form data might not be saved.

By default, you can add the following actions to submit buttons:

  • Trigger Goal - selects a preset goal. You can also create a new goal.

    FORMS-select-goal.png
  • Redirect URL - redirects the visitor to an external URL.

    FORMS-redirect-url.png

    Field

    Description

    Url

    Enter the URL prefixed with web protocols (http:// or https://).

    URL preview

    Displays a preview for the URL.

    URL parameter

    You can pass on form data to a URL as parameters. For example, if you want to redirect to a thank-you page and summarize the visitor's contact details. Or, for example, if you have a product search form that navigates to an external website and you want to pass on the search text from the form to the URL.

    Click Add parameter to add URL parameters. In the Parameter field, enter the key of the URL parameter. In the Form Field, select the field. The Redirect to URL submit action retrieves the field value and generates the final URL. You can preview the generated URL from the URL Preview input box. Click x to remove the parameter.

  • Trigger Campaign Activity - selects a preset campaign activity. Select the campaign activity that should be triggered when the button is clicked.

  • Trigger Outcome - selects an outcome type.

    FORMS-select-outcome.png
  • Send Email Campaign Message - select the email campaign message that should be sent when the button is clicked.

  • Redirect to Page - redirects the visitor to a web page.

    FORMS-select-page.png
  • Save Data - saves the form data to the database.