Skip to main content

Create a field rule in the Rule Set Editor

Abstract

Create a field rule on a web form.

A set of one or more conditions and a corresponding action is called a rule. You can create conditions that identify the target audiences of your website and configure actions that define the behavior of a web form if the conditions are met. If you created several conditions in the form field or section, the module processes all the conditions. Conditions are processed in a top-down order.

To create a field condition and a corresponding action:

  1. In the Experience Editor, click on the relevant web form and a Form dialog box appears.

    256ED28979994EA7A5D5C935EFD24B4B.png
  2. Click Edit form in Form Designer BB7C02D03E5C4F5EAC7F7EA10F29229F.png and the Form Designer appears.

    F8110D4AB74646CBBA220126B1DBB30D.png
  3. In the Form Designer, select the relevant web form field and on the left pane, in the Rules section, click Edit.

    F194D08BC72E405C83ACB7F11065F184.png
  4. In the Rule Set Editor dialog box, in the Select the conditions for the rule field, select one or more conditions.

  5. The selected conditions appear in the Rule description section.

    2C68D7721AF944CF9C8AEAC2D6895939.png
  6. In the Select the actions for the rule field, select the action that you want the web form to perform if the conditions are met. The available field actions are:

    Field action

    Description

    Hide element

    Hides a field or a section for the current website visitor

    Use the default value from specific URL query string

    Reads the value of the specific parameter in the query string and makes it the current field value

    Use the default value from user profile specific field

    Reads the value of the specific parameter in the user profile of the current website visitor and makes it the current field value

    Use the default value from specific visitor tag

    Reads the value of the specific visitor tag in the DMS database and makes it the current field value

  7. The selected action appears in the Rule description section.

    6421AEFDB29040C48E7B09494B6759CC.png
  8. Click the underlined keywords to change or set the values. You can configure conditions using keywords, such as 'compares to', 'is greater than', 'starts with', and so on. Keywords in red indicate that you must click the keyword and enter a value. Use one of the following methods to set the keyword:

    • Click the keyword and enter the value. For example, expression, specific country, and so on.

    • Click the keyword and choose an alternative keyword. For example, compares to, where, and so on

    • Click the keyword and choose the value. For example, specific, specific template, and so on.

  9. When there are no more keywords in red, click OK and save the changes.