cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User III
Super User III

Re: Conditionally showing new controls

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

Highlighted
Super User III
Super User III

Re: Conditionally showing new controls

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
Highlighted
Super User III
Super User III

Re: Conditionally showing new controls

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

Highlighted
Regular Visitor

Re: Conditionally showing new controls

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?

 

Highlighted
Super User III
Super User III

Re: Conditionally showing new controls

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

Highlighted
Regular Visitor

Re: Conditionally showing new controls

Once again, thanks.

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,068)