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 / Boolean Values Not Cha...
Power Apps
Answered

Boolean Values Not Chaning Button Colors or States

(0) ShareShare
ReportReport
Posted on by 1,401 Moderator

I have an OnStart of

Set(multiMode,false);

In my Scene, I have a Button with Fill

If(
 multiMode = false,
 RGBA(0,0,0,1),
 RGBA(255,0,0,1)
)

I have a Label verifying the value of "multiMode" is "false", yet the Button has Color RGBA(255,0,0,1).

Why is this happening?

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Have tested this on my side and it is working great. Do you get any errors or warnings in your App CHecker?

    TheRobRush_1-1667424335175.png

     

    Only thing i can think is theres a conflicting Set() of the variable somewhere forgotten in the app

  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @IPC_ahaas ,

     

    Please check if you restart the App.

    The OnStart property takes effect after the App starts

    please try:

    vchengfenmsft_0-1667458567551.png

     

     

    Best Regards

    Cheng Feng

  • IPC_ahaas Profile Picture
    1,401 Moderator on at

    I've restarted multiple times and ensured OnStart was executing

    IPC_ahaas_1-1667478366102.png

    A label shows the value is "false"

    IPC_ahaas_3-1667478586798.png

    The button is evaluating incorrectly

    IPC_ahaas_4-1667478681920.png

     

     

  • Verified answer
    IPC_ahaas Profile Picture
    1,401 Moderator on at

    I changed it to this and it seems to be working now.

    If(
     multiMode,
     RGBA(255,0,0,1),
     RGBA(0,0,0,1)
    )

    I guess no matter what, the first part has to be true.

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard