cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PurpleHaze
Regular Visitor

Conditionally showing new controls

In this PowerApp I'm working on, there is a dropdown control listing a selection of items.

Depending on which item is selected, I want new specific controls to be displayed or hidden (Usually visible if either A, B or C is selected, etc.)

 

Also I want a particular control to be visible if one number-based control is above a particular value.

 

So how can I get that done?

Thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions

should be something like this:

on the visible property of your control that you want to show/hide, 

 

if(Dropdown1.Selected.Value = "X", true, false) 

 

This will make the field visible if the condition is true

 

also you can make one control visible based on the visible property of another control.

 

so if the number field is TextInput1, you can set the value of the visible property of TextInput2 to

TextInput1.Visible

 

Hope this helps. @PurpleHaze  if this answers your question please mark it a solution.

View solution in original post

separate them in your expression by ||

this is the or operator

so 

if(condition1 || condition2 || condition 3 || condition 4, true, false)

View solution in original post

4 REPLIES 4

should be something like this:

on the visible property of your control that you want to show/hide, 

 

if(Dropdown1.Selected.Value = "X", true, false) 

 

This will make the field visible if the condition is true

 

also you can make one control visible based on the visible property of another control.

 

so if the number field is TextInput1, you can set the value of the visible property of TextInput2 to

TextInput1.Visible

 

Hope this helps. @PurpleHaze  if this answers your question please mark it a solution.

View solution in original post

Thanks. It worked.

Although, how can I add multiple conditions so that it would the visibility would be "true" if any of them were met?

 

separate them in your expression by ||

this is the or operator

so 

if(condition1 || condition2 || condition 3 || condition 4, true, false)

View solution in original post

PurpleHaze
Regular Visitor

Once again, thanks.

What about togglers? I'd like to make one control invisible if a toggle control is on "true".

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,126)