web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to make the Button...
Power Apps
Answered

How to make the Button be highlighted depending on if I'm on the homescreen or not?

(0) ShareShare
ReportReport
Posted on by 5

I'm creating this app and there is 6 different s buttons on the top of the screen just like a tab . Each of this buttons move the user to a different screen, and I want to make the Button in a different color depending on the screen the user is selected.

Categories:
I have the same question (0)
  • Bilakanti Profile Picture
    1,226 on at

    @Bez1n Change the Fill property of the Button based on the Active screen

    If(ActiveScreen.Name = "Screen1",Green,LightBlue)

  • Bez1n Profile Picture
    5 on at

    20230127_112440.jpg

    The errors are

    Name isn't valid. 'ActiveScreen' isn't recognized

    Invalid use of '.'

    Incompatible types of comparasion

     

     

  • Verified answer
    Bilakanti Profile Picture
    1,226 on at

    @Bez1n Sorry, It's App.ActiveScreen.Name.

    Bilakanti_0-1674830013997.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard