Showing results for 
Search instead for 
Did you mean: 
Impactful Individual
Impactful Individual

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


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

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.


Resident Rockstar
Resident Rockstar

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

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,035)