Loading

Visibility Filter with multiple Not Equal conditions Always Shows Component When Any Filters are True

Fecha de publicación: Apr 24, 2026
Descripción

You have multiple Lead Statuses but only want to show a custom Flow Component when the Lead Status is not set to specific values (e.g., "New" or "Working"). You configure Visibility Filters as follows:

Filters:

  • Record > Lead Status Not Equal "New"
  • Record > Lead Status Not Equal "Working"

Show Component when: Any filters are true
When you test by setting a Lead record's Status to "New," the Flow Component still displays — even though you expected it to be hidden.

Root Cause

Because Lead Status is a single-value picklist, only one value can be set at a time. This means that when using Any filters are true, one of the two "Not Equal" conditions will always evaluate to true.

Example 1 — Lead Status = "Qualified" (Component should display)

FilterEvaluation
Record > Lead Status Not Equal "New"✅ TRUE
Record > Lead Status Not Equal "Working"✅ TRUE

Both filters are true → component displays. ✔️

Example 2 — Lead Status = "New" (Component should be hidden)

FilterEvaluation
Record > Lead Status Not Equal "New"❌ FALSE
Record > Lead Status Not Equal "Working"✅ TRUE

Because "Any filters are true" only requires one condition to be met, the second filter (Not Equal "Working") evaluates to TRUE — so the component still displays, even though the intent was to hide it.

Key Insight:
With a single-value picklist, a "Not Equal" condition for any value other than the current one will always be true. Using "Any filters are true" with multiple "Not Equal" conditions will therefore almost always show the component.



Solución

Resolution

Change the Component Visibility setting from Any filters are true to All filters are true.
This ensures that every condition must be met before the component is displayed. With this change:

  • When Lead Status = "New": Not Equal "New" is FALSE → component is hidden ✔️
  • When Lead Status = "Qualified": both filters are TRUE → component displays ✔️

Steps:

  1. Navigate to the Lightning Page in App Builder
  2. Select the Flow Component
  3. Under Set Component Visibility, locate the Show Component when setting
  4. Change the value from Any filters are true to All filters are true
  5. Save and activate the page
Número del artículo de conocimiento

005319565

 
Cargando
Salesforce Help | Article