Skip to main content

Hello folks- 

 

I think there is a trick to this, but I can't remember it 😎.  On a screen flow I have a dependent picklist component with two fields:

Health Plan Contract Related (Yes/No) and Health Plan (some values).  The controlling field Health Plan Contract Related is required.  Health Plan is only required if the the first field value is 'Yes'.  Screen flow with dependent picklist component: validate input when required

I built a boolean formula resource that's used on the Validate Input of the component.  It's not working.  The message to select a value only when 'Yes' is showing regardless. 

 

I tried two versions of the formula.  Both failed.  The Validate Input message displays:  

"

Health Plan is required when Health Plan Contract Related is Yes

." 

 

AND(

{!varT_HealthPlanContractRelated} = "Yes",

ISBLANK({!varT_HealthPlan})

)

 

AND(

{!varT_HealthPlanContractRelated} = "Yes",

NOT(ISBLANK({!varT_HealthPlan}))

)

NOTE: the formulas reference two text variable resources that correspond to each picklist field. 

 

Thanks much in advance. 

 

Gustavo 

 

14 réponses
  1. Hier, Ă  22:41

    For this one don't worry about the Validate Input component. It overcomplicates it.  

     

    Just add a formula field to Picklist 2 required option.  

     

    My picklist's API name was "dpl" 

    I want to check the value in the top value (first picklsit) is "Yes" 

     

    {!dpl.topValue} = 'Yes'

     

     

    For this one don't worry about the Validate Input component. It overcomplicates it. Just add a formula field to Picklist 2 required option.

     

    Screenshot 2026-09-10 084041.png

     

     

    yesreq.png

     

     

    nonotreq.png

     

     

     

0/9000