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 / I want to use similar ...
Power Apps
Unanswered

I want to use similar concept of check box in the galley

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want hide gallery items from the gallery 
using of the check box its working fine.
Check box-"on check"=Collect(ColH1,ThisItem)
                 -"On uncheck "=Remove(ColH1,ThisItem)

I want to use 2 icon in the gallery but want to see one button at a time 

Raj_Saha_0-1631301240953.pngRaj_Saha_1-1631301298329.png

User will see one button at a time .how to set based on the gallery items.


Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Button1 visible property is based on item property like ThisItem.IsActive (IsActive is a boolean field) or any other condition

    Button2 Visible property to 

    StalinPonnusamy_0-1631306484755.png

     

    Example Gallery. Have 2 buttons (Book and Unbook ) Only one is visible all the times

    StalinPonnusamy_1-1631306752301.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What is the button 1 condition I need to give ?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    I assume by the label (Book and unbook), the User is booking for an event. So in the data source, you have information on whether the current user is booked for that event or not.

     

    Boo1 visible property should be 

    IsEmpty(Filter(DataSource,condition))

     

    For Example,  Checking whether a logged-in User is booked for the event this vent or not

    IsEmpty(Filter(IssueTracker,EmailId=User().Email && Event=ThisItem.Event))

     

    Note: For better performance, App OnStart set the property to, Set(UserInfo, User()) so this variable will be used all over the application like UserInfo.Email

    StalinPonnusamy_0-1631546942295.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Its not related to the user specific .
    Suppose I login to the application there is some gallery data I want to hide.
    there is two button is given to the gallery
    1.one icon hide the data
    2.one icon unhide the data

    Condition one icon it will show one at a time 
    everything happening in the collection 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard