Announcements
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...
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.
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.
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.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 551
WarrenBelz 430 Most Valuable Professional
Valantis 298