cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DAVIDPOWELL
Impactful Individual
Impactful Individual

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
Amol-Kavnekar
Resolver I
Resolver I

@DAVIDPOWELL ,

 

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.

View solution in original post

2 REPLIES 2
Amol-Kavnekar
Resolver I
Resolver I

@DAVIDPOWELL ,

 

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.
DAVIDPOWELL
Impactful Individual
Impactful Individual

@amol 

 

worked perfect , Thanks very much !!

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,487)