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 Separator ...
Power Apps
Answered

how to make Separator invisible with button.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, I have a question that I want the Separator to be visible when pressing a button, just what is selected.ssp.PNGanother screenanother screen

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @Anonymous ,

    Can you give more details about what you want to achieve ?

    Thx

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    I want to leave this green label only visible when you press the button that is on another page. I don't want everyone to be visible only the selected one.
  • Dutchmann Profile Picture
    30 on at

    We still need a little more information. Can only 1 label be green at all times, or can the user select multiple entries?

     

    If only 1 label needs to be green, we can achieve that in the following way. Use a rectangle in the gallery that has the desired green color. Then go to the visibile property and set its value to the following formula 

    If(ThisItem.IsSelected,true,false)

    What this does is that whenever you select an entry, ThisItem.IsSelected will evaluate to true for that specific entry and, thus, result in 'true' and the rectangle becomes visible.

     

    Let me know if this solves your question. 

  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @Anonymous ,

    Also, without using another control (a label or a rectangle), you can set the Gallery:

    TemplateFill -> If(ThisItem.IsSelected,Red,Green) (of course you can change the colors as you need) 

     

    and the result wil be like this:

    ezgif.com-gif-maker (1).gif

  • Dutchmann Profile Picture
    30 on at

    @gabibalaban Oeh, that is way neater. Thanks, I learned another thing today :D!

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Dutchmann Thank you !😊  

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hello i need to use an icon to perform this function. this was the code I was trying.

    OnSelect = Set (SeparatorP,! SeparatorP).

    Visible = SeparatorP

    but all the two separators are visible precisely, only what I selected is visible.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard