Skip to content

Segments: Allow inclusion and exclusion conditions on the same field #562

@alexanderloewe

Description

@alexanderloewe

Feature Request

When creating a segment, it is currently possible to select a field and define a condition that determines which recipients should be included.

In our case, we are using a multi-select field called newsletterCheckboxCategory. We need to create a segment that:

  • includes recipients who selected one specific option;
  • excludes recipients who selected another option within the same field.

At the moment, it does not appear to be possible to apply both an inclusion and an exclusion condition to the same field.

Current workaround

As a workaround, we created an additional text field. This separate field is used to define the inclusion condition, while the original multi-select field is used indirectly to handle the exclusion logic.

This works, but it introduces redundant data and makes the segment configuration unnecessarily complex.

Expected behaviour

It should be possible to select the same field multiple times within a segment and apply different operators to it, for example:

  • newsletterCheckboxCategory contains category-a
  • newsletterCheckboxCategory does not contain category-b

This is particularly useful for multi-select fields, where inclusion and exclusion rules naturally need to be combined.

We have not yet tested whether the same limitation applies to other field types. If it does, it would be helpful to support this behaviour consistently across all relevant field types.

Image

Plugin Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions