AFI AFI

Contains

Estimated reading: 2 minutes Updated August 1, 2026

Use Contains in AFI conditional logic to fire an integration only when a submitted form value includes a substring you configure. It’s the right pick for partial matches, checking whether a comment includes a keyword, an email belongs to a domain, or a multi-select includes an option.

How it works

When a form is submitted, AFI checks whether the substring you provide appears anywhere inside the field value. If it does, the rule passes and the integration runs. If it doesn’t, AFI skips this destination for that submission.

Substring matching is case-sensitive and looks for the value anywhere in the field: beginning, middle, or end. No wildcards or regex.

Example

Goal: when a contact-form message contains the word urgent, ping a #leads-urgent Slack channel as well as the standard CRM destination.

Setup:

  1. Create a Slack integration on the same form, pointing at the #leads-urgent webhook URL.
  2. Open the Conditional Logic panel.
  3. Click Add Condition.
  4. In the field dropdown, pick the message field (e.g. {your-message}).
  5. Set the operator to Contains.
  6. In the value box, type urgent.
  7. Click Save Integration.

Screenshot: AFI Conditional Logic panel with one condition row: field dropdown set to "your-message", operator dropdown set to "Contains", value field showing "urgent"

Submissions whose message includes the word urgent (anywhere in the text) now fire both the standard CRM integration and the Slack ping.

Notes

  • Case-sensitive. Urgent, URGENT, and urgent are different. If you want any casing to match, set up multiple Contains conditions joined with Any semantics, or normalize the input on your form.
  • Whitespace counts. A search for urgent (with surrounding spaces) won’t match urgent. (with a period). Pick the most distinctive substring you can.
  • Multi-select fields. When the field is a checkbox group or multi-select, AFI receives the values as a comma-separated string. Contains "Pro" matches when any selected option includes Pro.
  • Email domain check. Use Contains with @yourcompany.com to match any address from your company. Pair with Does Not Contain for the opposite.

Related operators