cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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
Memorable Member
Memorable Member

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
Memorable Member
Memorable Member

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

This worked perfectly!  Thanks so much!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (56,843)