cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Updating labels from button onselect

I have a form that has parent/child combo boxes, combobox1 and combobox2. Based on the selected items I would like for the 5 labels to update on the onselect of a button, button1. The data is linked to an excel table and if the data doesn't exist in the table then I would like the action of the button to also prompt another form for the user to add the info. The added info would populate another excel table to be review and added to the master table at a later point. See example below.

 

combobox1: Brand name

combobox2: product ID

Button1: "View"

 

5 labels that show attributes of the product i.e. height, weight, material type, etc.

 

If data doesn't exist form 2 pop ups.

 

Currently the data shows without the use of the button since I have lookup functions in each label but would prefer users to hit view before label text appear.

 

I am a novice at best with powerapps so any help would be great.

 

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi @bdjones23 

You can have your labels appear based on a button press.  You can use UpdateContext({showlabel: true}) show the label or to toggle the visibility  UpdateContext({showlabel: !showlabel}) by putting this in the OnSelect property of the button.  You set the Visible property of the label to showlabel. If you want the labels hidden by default, make the OnVisible property of the screen containing the labels UpdateContext({showlabel:false})

View solution in original post

1 REPLY 1
Super User II
Super User II

Hi @bdjones23 

You can have your labels appear based on a button press.  You can use UpdateContext({showlabel: true}) show the label or to toggle the visibility  UpdateContext({showlabel: !showlabel}) by putting this in the OnSelect property of the button.  You set the Visible property of the label to showlabel. If you want the labels hidden by default, make the OnVisible property of the screen containing the labels UpdateContext({showlabel:false})

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (10,575)