Skip to content

Document select field operators in Segment filters#765

Open
promptless-for-oss wants to merge 18 commits into
mautic:7.1from
Promptless:promptless/segment-select-operators
Open

Document select field operators in Segment filters#765
promptless-for-oss wants to merge 18 commits into
mautic:7.1from
Promptless:promptless/segment-select-operators

Conversation

@promptless-for-oss

Copy link
Copy Markdown

Open this suggestion in Promptless to view citations and reasoning process

Documents which operators are available for select fields in Segment filters, clarifying the distinction between single-select and multiselect fields based on PR #16012. Updated to use the new operator labels from PR #15027.

Changes

docs/segments/manage_segments.rst

  • New section: Operators for select fields - Documents the complete operator list for single-select fields including is equal to, is not equal to, is empty, is not empty, matches pattern, does not match pattern, includes any of, and excludes any of
  • Multiselect-only operators - Clarifies that only 'includes all of' and 'excludes all of' are exclusive to multiselect fields
  • Clarifying note - Explains why these two operators don't appear for single-select fields like Country, Timezone, Region, Locale, and custom select fields

Context

PR #16012 fixes a bug where 'includes all of' and 'excludes all of' operators were incorrectly available for single-select fields in Segment filters. These operators only make sense for multiselect fields where a Contact can have multiple values. PR #15027 renamed operators to be more user-friendly, so the documentation now uses the updated operator names.

Trigger Events


Tip: Adjust how proactive or focused Promptless is in Agent Settings ⚙️

promptless Bot added 18 commits April 1, 2026 13:33
Adds a new section explaining which operators are available for select fields
in Segment filters, clarifying that 'including all of' and 'excluding all of'
are only available for multiselect fields, not single-select fields like
Country, Timezone, Region, and Locale.
- Add Regexp and Not regexp operators to single-select field list
- Clarify that Including any of and Excluding any of work for single-select fields
- Simplify multiselect section to only list the two exclusive operators
- Mention custom select fields in addition to built-in single-select types
Updates operator names in the 'Operators for select fields' section to
use the new user-friendly labels introduced in Mautic 7.x. This aligns
the documentation with the actual UI text from PR #15027.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Line 385)

PR #16012 removes 'including all of' and 'excluding all of' operators from single-select fields (Country, Timezone, Region, Locale) in OperatorListTrait.php. The PR description confirms these operators are "logically impossible for single-select fields" and should only appear for multiselect fields.

Source: mautic/mautic#16012


Single-select fields like Country, Timezone, Region, Locale, and custom select fields have these operators:

* **Is equal to** - The Contact's value exactly matches the selected option.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated operator names to match the user-friendly labels from PR #15027. The new labels are: is equal to, is not equal to, is empty, is not empty, matches pattern, does not match pattern, includes any of, excludes any of, includes all of, excludes all of.

Source: mautic/mautic#15027

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant