Form Field Contains Text Condition
Functionality
The Form Field Contains Text Condition checks whether a form field contains a specific text or string. It compares the content of the field with the given text, and if the field's value includes the specified string, the condition evaluates to true. If the field does not contain the text, the condition evaluates to false. This condition is useful for triggering actions based on whether a field contains a particular value within its text.
Steps
To use the editor, follow these steps to configure the condition for comparing text values:
Select the field name from the dropdown of available fields in the form.
Enter the text you want to compare in the "Compare Text Value" field, making sure it is enclosed in double quotes (e.g., "Sample Text").
You can test the values by clicking the play button below. This lets you verify the evaluated values before the comparison.
For Example
Imagine you're creating a form where users enter their email address, and you want to check if the email contains "@example.com". You would select the "Email Address" field and enter "@example.com" as the value to be compared. The condition checks if the email entered contains the specified text. If the email includes "@example.com", the form proceeds. If it doesn't, an error message appears, saying, "Please use an email address from @example.com."
In this example, the Set Field Error Action is used in conjunction with the form field contains text condition.
Last updated