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.

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)
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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,564)