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 / Button to put result o...
Power Apps
Answered

Button to put result of dropdown menu into a Label which they could add to again.

(0) ShareShare
ReportReport
Posted on by 19

I want to have a button that updates a label. But does not just replace what is in th elabel but adds on to it.

 

So for example when you first enter the screen the label should be blank.

 

Then the user selects a value and presses the button this value is then written to the label and a , put after that value.

 

Then they choose another option from drop down list press the button and that adds it to the label...

 

So label now looks like option1, option2,

 

then it could go on and on..

 

On the next screen is a form and I then want to prepopulate a card on that form with the final results of that label.

 

I tried to use UpdateContext(newobjectives) where newobjectives is the name of the label, but cant seem to work out which value you would pass to the label.

 

 

Categories:
I have the same question (0)
  • Verified answer
    leyburn19 Profile Picture
    2,157 on at

    On the on visible set a variable like updatecontext({varbuttontext:""}) or Set(varbuttontext,"")

     

    Then on the onselect to the button set the variable. EG:

     

    If(varbutton="",Set(varbutton,Dropdown?.Selected.Value,),Set(varbutton,varbutton &"," &Dropdown?.Selected.Value,)

     

    Dropdown selected.value might be dropdown.selected.result if it is created witha distinct function

     

     

    Now make label text property to equal varbutton

  • stefanlive Profile Picture
    19 on at

    Thank you that worked a treat

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard