In this article, we'll explore how to create a Screen Component in Salesforce Flow that behaves dynamically by showing a Text box only when a specific value is selected in a Dependent Picklist and hiding it for other selections. This helps improve user experience by displaying only the relevant fields.
For example, a customer intake form shows an 'Explain if Other' text box only when the user selects 'Other' from a category dropdown — improving form clarity and reducing data entry errors.
Step 1: Create a new Screen Flow and add a Variable
| API Name | recordId |
| Data Type | Record |
| Available for input | Check this box |
Note: The name of the Variable must be exactly recordId without any quotation mark or spaces
Step 2: Add a Screen Element and insert the Dependent Picklist Component
Note: Update these values to match the object and field API names based on the org setup
Step 3: Add a Text Component and set Conditional Visibility
| Resource | {!Dependency.middleValue} |
| Operator | Equals |
| Value | Other |
Step 4: Test and Save the Flow
____________________________________________________________________________________
- Salesforce Help: Screen Flows
https://help.salesforce.com/s/articleView?id=sf.flow_concepts_type_screen.htm
- Salesforce Help: Conditional Visibility for Screen Components
https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_screen_visibilityrules.htm
- Salesforce Help: Dependent Picklist Fields
https://help.salesforce.com/s/articleView?id=sf.fields_defining_field_dependencies.htm
- Trailhead: Flow Builder
https://trailhead.salesforce.com/content/learn/modules/flow-builder
- Salesforce Help: Add a Screen to a Flow
https://help.salesforce.com/s/articleView?id=sf.flow_build_add_element_screen.htm
005227554

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.