Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

retain fill colour of tab once selected?

(0) ShareShare
ReportReport
Posted on by 148

Have a form with 6 tabs that the tab (button in gallery) fill colour changes upon selection based on this formula for fill:   If(varTab=ThisItem.Tab,varColour1,varColour2)

 

But is it possible to retain a colour after a tab is selected? For example if default tab colour is red , once a tab is selected and user navigates to next tab, it gets set to green, to indicate to end user that tab has been viewed?

 

thanks

 

 

Categories:
  • cheezy Profile Picture
    148 on at
    Re: retain fill colour of tab once selected?

    i am still struggling with this

    As mentioned have a form with 6 tabs that the tab (button in gallery) fill colour changes upon selection based on this formula for fill:   If(varTab=ThisItem.Tab,varColour1,varColour2). 

    So i can set a variable on the On Select -   Set(varSelected,true);  but how to meld into this formula for fill?

    If(varTab=ThisItem.Tab,varColour1,varColour2) to achieve the result i am after?

     

     

     

  • WarrenBelz Profile Picture
    146,537 Most Valuable Professional on at
    Re: retain fill colour of tab once selected?

    Hi @cheezy ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    146,537 Most Valuable Professional on at
    Re: retain fill colour of tab once selected?

    Hi @cheezy ,

    You could do this by setting a Variable on the OnSelect and basing the Fill on the Variable being true.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard