Hide or Display Text using Picklist Selection by Conditional Logic in Salesforce Flow

Scenario - Opportunity has Status field which holds value as "Close-Won" and "Close-Lost". Whenever user select the Close-Won Picklist value, display Congratulation message, otherwise dont show message. This can be done by Conditional Logic to show or hide the Display Text.

Step 1: Create a Screen Flow

Navigate to Setup -> Process Automation -> Flows -> Click on “New Flow” button and select Screen Flow

Step 2: Create Flow Elements

  • Add screen element in Flow
  • Add Picklist Element from Components on to the Screen Element
    • Name the element as “Opportunity Status”
    • Under Configure choices
      • Component Type -> Picklist
      • Let Users Select Multiple Options -> No
      • Choice -> Close_Won
      • Choice -> Close_Lost
  • Add Display Text Element from Components on to the Screen element
    • Name the display element as “SuccessMessage”
    • In message section, add display message text as “Congratulations!! Opportunity Closed Won”
    • Under Set Component Visibility
      • When to Display Component -> All Conditions Are Met(AND)
      • Resource -> Opportunity_Status
      • Operator -> Equals
      • Value -> Close_Won
  • Save the Flow.
  • Activate and Debug.  

Watch flows in Action

Leave a Reply