Skip to main content
Community site session details

Community site session details

Session Id : cV1boGQHp/34B8Z7IQMb1l
Power Apps - Building Power Apps
Unanswered

Changing the onselect property of Navigation pane

Like (0) ShareShare
ReportReport
Posted on 7 Apr 2022 13:19:26 by 16

Hi everyone,

 

I have a navigation pane for which I have 4 different screens.The issue is when I click on one screen label it should deselect other screen label or icon .

I have used 4 variables for 4 icons and 4 variables for 4 labels. So totally 8 different variables.

Can someone help me regarding this.

Thanks in advance 

  • Ramya0308 Profile Picture
    16 on 07 Apr 2022 at 17:56:02
    Re: Changing the onselect property of Navigation pane

    Hi but when i click on other icon or label the other should get deselected

  • zmorek Profile Picture
    3,272 on 07 Apr 2022 at 16:21:36
    Re: Changing the onselect property of Navigation pane

    In my opinion a gallery would simplify this a whole bunch by removing the need for all the variables and repeated controls, however if it must be done this way, consider:

     

    Have each label update one variable OnSelect = UpdateContext({locVariable: Self.Text}).

     

    Then have each label's Fill property be something like:
    If(locVariable = Self.Text, Green, Blue)

     

    Edit: Since I'm realizing now this is a navigation pane, probably should use a global variable:

     

    OnSelect = Set(varVariable, Self.Text)

     

    Then have each label's Fill property be something like:
    If(varVariable= Self.Text, Green, Blue)

  • Ramya0308 Profile Picture
    16 on 07 Apr 2022 at 15:57:47
    Re: Changing the onselect property of Navigation pane

    Hi @zmorek 

     

    It's not a gallery we have used 4 different icons and 4 different labels

  • zmorek Profile Picture
    3,272 on 07 Apr 2022 at 13:43:53
    Re: Changing the onselect property of Navigation pane

    Is that a gallery? You can use ThisItem.IsSelected to change your colors. If(ThisItem.IsSelected, Green, Blue)

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete