web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to manage control ...
Power Apps
Unanswered

How to manage control visibility in Canvas App?

(0) ShareShare
ReportReport
Posted on by

Hello,

 

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?

 

Thanks,

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @dave8 

    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."

  • eka24 Profile Picture
    20,925 on at

    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.

     

  • Vijay Tailor Profile Picture
    2,961 on at

    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).

    VijayTailor_0-1600691171674.png

    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)

    VijayTailor_1-1600691435063.png

    VijayTailor_2-1600691489453.png

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

    Please FInd the below Link for the Demo of the Test.
    https://drive.google.com/file/d/1Zp-rGkIyFA9miEZYC_PR48REUh0jFfZf/view

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 600

#2
WarrenBelz Profile Picture

WarrenBelz 478 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard