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'.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
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'