Define web forms page sequencing defining-web-forms-page-sequencing

The form can contain one or more pages. It is built via a diagram which lets you sequence pages, testing, script execution, page jump and recording steps. Global diagram design mode is the same as for a Campaign workflow.

About previous page and next page about-previous-page-and-next-page

For each page, you can delete the Next or Previous buttons. To do this, select the page concerned and select the option Disable next page or Disallow returning to the previous page .

Page properties, General tab, with the Disable next page option selected in the Navigation section.

You can replace these buttons with links. See Inserting HTML content.

Inserting a jump inserting-a-jump

The Jump object gives access to another page or another form when the user clicks Next.

The destination can be:

  • Another page of the form. To do this, select Internal activity and then specify the desired page, as below:

    Jump dialog with Internal activity selected and the Activity list showing the form pages to jump to.

  • Another form. To do this, select the Explicit option and specify the destination form.

    Jump dialog with Explicit selected and a destination form chosen in the Target Web application field.

  • The destination can be stored in a variable. In this case, select it from the drop-down list, as shown below:

    Jump dialog with Stored in a variable selected and the Local variable drop-down list open.

  • The Comment tab lets you enter information that will be visible by the operator when they click the object in the diagram.

    Comment tab of the Jump dialog; the text appears as a tooltip on the Jump object in the form diagram.

Example: accessing another form according to a parameter of the URL example--accessing-another-form-according-to-a-parameter-of-the-url

In the following example, we want to configure a Web form which, when approved, will display another form designated by a parameter of the URL. To do this, apply the following steps:

  1. Insert a jump at the end of a form: this replaces the End box.

    Form diagram with a Jump object inserted after Storage at the end of the form, replacing the End box.

  2. In the form properties, add a parameter (next) stored in a local variable (next). Local variables are detailed in Storing data in a local variable.

    Form properties Parameters tab adding the next parameter, stored in the local variable next.

  3. Edit the Jump object, select the Stored in a variable option and select the next variable from the drop-down box.

    Jump dialog with Stored in a variable selected and the next variable chosen in the Local variable list.

  4. The delivery URL must include the internal name of the destination form, for example:

    code language-text
    https://[myserver]/webForm/APP62?&next=APP22
    

    When the user clicks the Approve button, form APP22 is displayed.

You can insert links to other pages of the form. To do this, add a Link type static element to the page. For more on this, refer to Inserting a link.

Conditional page display conditional-page-display

Display based on responses display-based-on-responses

The Test box lets you condition the sequencing of pages in a form. It lets you define various branch lines depending on test results. This enables you to display different pages depending on the answers provided by users.

For example, you can display a different page for customers who have already ordered online, and another for those who have placed over ten orders. To do this, in the first page of the form, insert a Number type input field for the user to state how many orders they have placed.

Form page Your details and orders with title, name, email fields and a How often do you order on the web question.

You can either store this information in a field of the database or use a local variable.

NOTE
The storage modes are detailed in Response storage fields.

In our example, we want to use a variable:

Order count field of the page with its storage set to the Variable option and the variable Oders selected.

In the diagram of the form, insert a test box in order to define the conditions. For each condition, a new branch will be added at the output of the test box.

Tests dialog with the branches Orders +10 and Orders 1-->9 and the Edit branch dialog defining their conditions.

Select the Activate the default branching option to add a transition for cases where none of the conditions is true. This option is unnecessary if every possible case is covered by the conditions defined.

Next, define the page sequencing when one or other of the conditions is true, for example:

Form diagram: the Orders? test leads to New, Standard, or Gold pages, which all lead to Storage and End.

Display based on parameters display-based-on-parameters

You can also personalize the page sequencing according to the initialization parameters of the Web form or according to the values stored in the database. See Form URL parameters.

Adding scripts adding-scripts

The Script object lets you enter a JavaScript script directly, for example to modify the value of a field, retrieve data from the database, or call an Adobe Campaign API.

Personalizing the end page personalizing-the-end-page

You must place an end page at the end of the diagram. The end page is displayed when the user clicks the Approve button in the Web form.

To personalize this page, double-click End and enter the content of the page in the central editor.

End dialog with the end page title and content editor, showing a thank-you message for completing the survey.

  • You can copy and paste existing HTML content. To do this, click Display source code and insert the HTML code.
  • You can use an external URL; to do this, select the corresponding option and enter the URL of the page to be displayed.
recommendation-more-help
campaign-help-v8