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 fill property i...
Power Apps
Answered

Button fill property in a gallery inside a component..

(1) ShareShare
ReportReport
Posted on by 10

Hi,

 I had designed a component with a gallery and a button in it. This component is used across screens where there are edit forms in every screen to be filled. The navigation functionality of the component works well, but the button fill property inside the component is set to white initially. Now when the user filled the first form in the first screen, only the first button fill property inside the component should change to blue and the remaining buttons in the component should remain white. How can this be possible? Hope can anyone help me on this scenario...

Categories:
I have the same question (0)
  • KeithAtherton Profile Picture
    3,707 Most Valuable Professional on at

    Try using the following code for the button Fill property, changing ThisItem.FormFilled to a variable / condition to check if the form has been filled for that record:

    If(ThisItem.FormFilled, Color.Blue, Color.White)

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • BCBuizer Profile Picture
    22,565 Super User 2026 Season 1 on at

    Hi @TESTUSER21 ,

     

    I suggest to define an input property (type: Colour) and then set the Fill property of the button inside the component to reference that property.

     

    Now you can set the fill of each instance of the button within you app using whatever logic you like in this newly created property.

  • TESTUSER21 Profile Picture
    10 on at

    Hi BCBuizer, I tried the above one it changes the fill property of the buttons to blue once the condition is met in the first screen. Let me explain this in a simple case. There are 5 single horizontal buttons are placed one after the other and these 5 buttons have separate logics for changing the fill property from white to blue based on the respective forms. For example, 2nd button fill should be changed to blue when the 2-form logic had met leaving behind the 4 other buttons fill property to white. How can this be implemented inside a component. Thanks, for the suggestion and please suggest how can it be able to achieve.

  • Verified answer
    BCBuizer Profile Picture
    22,565 Super User 2026 Season 1 on at

    Hi @TESTUSER21 ,

     

    Let's say you created the property "btnFill" for your component as per my previous suggestion.

     

    For all 5 instances of the component on your screen, you should set the conditions for this property to make the button either white or blue. Unfortunately I can't support with the actual logic until I know how your app works, but from what I read you already have that figured out:

     

    ComponentInstance.btnFill = If(<Condition>, Color.Blue, Color.White)

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

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard