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.
Solved! Go to Solution.
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. @Anonymous if this answers your question please mark it a solution.
separate them in your expression by ||
this is the or operator
so
if(condition1 || condition2 || condition 3 || condition 4, true, false)
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. @Anonymous 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)
Once again, thanks.
What about togglers? I'd like to make one control invisible if a toggle control is on "true".
User | Count |
---|---|
250 | |
102 | |
94 | |
47 | |
37 |