cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Once clicked on the button, it should change the color

Hi, Please suggest how to achieve this. Pls refer the attachment.

 

Once I will click on the top category Button 'Search', it should change its color to white (as exactly shown in the screenshot) till the time I click on any other top category button 'Language' etc.

While I am clicking on the button, it turns white for a second then it changed back to original color. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Once clicked on the button, it should change the color

@NandanBrahma 
I assume each tab is a label.  In the OnSelect of each individual put code like this.

Set(currentTab, "Site Info")
Set(currentTab, "Site Behaviour")
Set(currentTab, "Language")
Set(currentTab, "Search")

 

Then, put this code in the Fill property of each individual tab

If(currentTab="Site Info", White, Gray)
If(currentTab="Site Behaviour", White, Gray)
If(currentTab="Language", White, Gray)
If(currentTab="Search", White, Gray)

 

Now the tab will appear White when clicked.  You can also set the color of the initial tab by putting this code in the OnVisible property of the form.

Set(currentTab, "Site Info")

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Once clicked on the button, it should change the color

@NandanBrahma 
I assume each tab is a label.  In the OnSelect of each individual put code like this.

Set(currentTab, "Site Info")
Set(currentTab, "Site Behaviour")
Set(currentTab, "Language")
Set(currentTab, "Search")

 

Then, put this code in the Fill property of each individual tab

If(currentTab="Site Info", White, Gray)
If(currentTab="Site Behaviour", White, Gray)
If(currentTab="Language", White, Gray)
If(currentTab="Search", White, Gray)

 

Now the tab will appear White when clicked.  You can also set the color of the initial tab by putting this code in the OnVisible property of the form.

Set(currentTab, "Site Info")

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (3,508)