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 / Set label after pressi...
Power Apps
Answered

Set label after pressing button

(0) ShareShare
ReportReport
Posted on by

Hi, I can't figure out where the problem is. I have a button in the gallery. I would like the text of the "Room" column to jump to the label after pressing it

 

Set('Wybrane piętro'; ThisItem.Pokój)

Wybrane piętro = label name

Pokój = Room

Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @pablik01 Set is used to declare a Global Variable. You can't set text to Labels directly. Instead, you can use the value of the Global Variable in the Text property of the Label to set the value.

    In the OnSelect of the Button,

    Set(varWybranepiętro; ThisItem.Pokój)

    In the Text property of the Label,

    varWybranepiętro

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • pablik01 Profile Picture
    on at

    Thank you

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
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard