Form Field Contains Text

Form Field Contains Text is a condition available within the Rule Panel that evaluates whether the text entered into a specified input field (such as a label, heading, or text field) contains a defined value.

If the user inputs text that fully matches the defined value, the condition is evaluated as true; otherwise, it evaluates as false. This condition is useful for enabling real-time input validation or for triggering specific actions based on the content entered by the user.

Properties and Explanation

Here are the steps to follow in order to use the Form Field contain text:

1

Field Name:

Specifies the input field to be monitored. This is the field from which the user input will be read and compared against the defined value.

2

Compare Text Value

Defines the text to be matched. If the user input in the selected field contains this value, the condition will return true; if not, it returns false.

The Value Expression utilizes the Formula Editor, See how the Formula Editor work.

Full Configuration Example

Below is a screenshot of the Form field contain text Condition configuration, showing all properties set for the Field Name and Compare Text Value:

This screenshot shows the complete configuration of the Form field contain text condition, including all relevant properties set up on the page.
  • Two text fields are configured with IDs title_1 and title_2.

  • The condition is set to check whether either of these fields contains the keyword "user". If the keyword is detected in any of the fields, the associated action is triggered.

Last updated