In PowerApps, you can dynamically show or hide fields based on the selection of "Type A" or "Type B" using the Visible property of controls. Here's how to do it:
Add a Dropdown for Selection:
ddTypeSelection
).Items
property to: ["Type A", "Type B"]
Add Input Fields:
txtFieldForA
→ Field specific to Type AtxtFieldForB
→ Field specific to Type BSet Visibility Based on Selection:
txtFieldForA
), set the Visible
property to:
ddTypeSelection.Selected.Value = "Type A"
txtFieldForB
), set the Visible
property to:
Switch()
instead of multiple If
conditions for better maintainability.
WarrenBelz
85
Most Valuable Professional
MS.Ragavendar
54
Michael E. Gernaey
42
Super User 2025 Season 1