Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

How to manage control visibility in Canvas App?



There is a Textbox1 and listbox1 control on the screen and I need to manage followings:


  1. By default listbox1 should be visible false
  2. when user type in Textbox1, then only listbox1 should be displayed, else it should be visible false.
  3. when item is selected in the listbox1, listbox1 should be visible false.


Currently Listbox1.Visible = !IsBlank(Textbox1.Text) which only satisfies 1 and 2nd condition. How can achieve all above conditions to be executed?



Super User III
Super User III

Re: How to manage control visibility in Canvas App?


Here's my proposed code:

!IsBlank(Textbox1.Text) And IsBlank(ListBox1.Selected.Value)


Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Super User III
Super User III

Re: How to manage control visibility in Canvas App?

In the visible of the listbox;

!IsBlank(Textbox1.Text) Or Listbox1.SelectedItems.Value= ""


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.


Memorable Member
Memorable Member

Re: How to manage control visibility in Canvas App?

Hi Dave,

 the below-mentioned requirement. you can implement like that.

1. By Default List is Hidden - Condition Expression is - if(IsBlank(TextBox ),false,true).


2. if you need to Collect All Selected Value then you can use Button with Collection / On Select Event Collect into the Collection.
Like Below (Note - OnSelect Event You Need to Get Distinct Value if you Need to Save or Patch)



And again remove the text from Text Box.
The list is Hidden.

Please FInd the below Link for the Demo of the Test.



Helpful resources

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.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,671)