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 color and data
Power Apps
Answered

Button color and data

(0) ShareShare
ReportReport
Posted on by 88 Season of Giving Solutions 2025

Hellp. I want to have a button that change color and change data. I have a button that is Grey and if I klick on it it will be red and send the data "Red" . If I press the button again it shall go blue and the data should be "Blue". If I press the button again it should go back to the Red again. I will just want the button to update a collection if it is blue och red. 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Bergh 

    Button

    • OnSelect: UpdateContext({var:!var}); Collect(_col, If(var,{color:"Red"},{color:"Blue"}))
    • Fill property: If(var,Red,Blue)
  • Bergh Profile Picture
    88 Season of Giving Solutions 2025 on at

    Thanks it works perfect!!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard