cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JohnYuma
Level: Powered On

Change fill of label in collection on page load

I have a collection that creates a Header row at the top of my app:

 

OPUS Pic1.png

 

I would like to change the fill of the corresponding label to the page as it loads.  My collection is as follows:

 

ClearCollect(
ccHeaderTabNames,
    {Tab: "Home"},
    {Tab: "My Opus"},
    {Tab: "Clients"},
    {Tab: "Quotes"},
    {Tab: "Search"},
    {Tab: "Tools"},
    {Tab: "New Ticket"},
    {Tab: "New Action"}
);

For example, I simply want to change the fill of the "Home" button when on the Home page to the blue of the secondary row.

 

Thanks in advance for any assistance!

1 ACCEPTED SOLUTION

Accepted Solutions
seadude
Level 10

Re: Change fill of label in collection on page load

Theres a fun trick to this one that Laura Rogers showed off way back in the day... Not sure if I can remember off the top of my head, but something like...

Set the tab's Fill Property to:

Switch(
    ThisItem.tabLabel,
    "Home",
    Green,
    "My Opus,
    Blue,
"Clients", Gray,
"Quotes"
"Purple",
"LightBlue )

Hope this helps!

 

 

View solution in original post

2 REPLIES 2
seadude
Level 10

Re: Change fill of label in collection on page load

Theres a fun trick to this one that Laura Rogers showed off way back in the day... Not sure if I can remember off the top of my head, but something like...

Set the tab's Fill Property to:

Switch(
    ThisItem.tabLabel,
    "Home",
    Green,
    "My Opus,
    Blue,
"Clients", Gray,
"Quotes"
"Purple",
"LightBlue )

Hope this helps!

 

 

View solution in original post

Highlighted
JohnYuma
Level: Powered On

Re: Change fill of label in collection on page load

This worked perfectly!  Thanks so much!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 434 members 5,977 guests
Please welcome our newest community members: