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 / Label visible only by ...
Power Apps
Answered

Label visible only by a button push and Label not visible by textbox change

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

What I have :

I have a search textbox (Textbox5).

I have a Button that initiates a sql server proc.

I have a label(Label17) that displays the results from the sql server proc.(numeric value)

 

What I need:

If someone starts to initiate another search in Textbox 5 i need the Label17 to be NOT visible until they

press the Search Button again.

When they press the Button Label17 will then appear again.

 

TextboxView.jpg 

Thanks

Dave

Categories:
I have the same question (0)
  • Verified answer
    Amol-Kavnekar Profile Picture
    125 on at

    @Anonymous ,

     

    You can use the Onselect Property of TextBox, Set the variable VarShowHideLabel to false on Onselect on Textbox

    UpdateContext({varShowHideLabel: false})

     

    And on Button onselect write below code

    UpdateContext({varShowHideLabel: true})

     

    at last set, the visible property of the Label to 

    varShowHideLabel.

     

    Regards

    Amol Kavnekar

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @amol 

     

    worked perfect , Thanks very much !!

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard