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 / Conditional Visibility...
Power Apps
Answered

Conditional Visibility based on User Selected Item

(0) ShareShare
ReportReport
Posted on by 95

Hi All,

I have a gallery of items that OnSelect leads to a detailed information screen that allows users to accept the item. Upon acceptance, the status of the item will change from 'Undelivered' to 'In Progress'. When this happens, the gallery of items visibility will be hidden from the user. The code is shown below. While my intent is to hide from the current user. The outcome is that it hides for all users! How do I isolate the visibility of the gallery items to each user's actions?

Alois_0-1603813865848.png
Thanks in advance!

Alois

 

Categories:
  • Verified answer
    Krishna98 Profile Picture
    204 on at

    Hi @Alois ,

     

    i guess you can do something like this,

    in the visible property of item

    ThisItem.status.value = "In Progress" && ThisItem.'Modified By'.Email = User().Email

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Alois ,

    Do you want to hide some items only for current user?

    Could you tell me the details of the hiding rule?

    Do you have a column with email value and if someone accept activity, this field will update with the person who accept the activity?

    Or do you want to hide the accepted activities temporarily when been accepted?

    Firstly, I suggest you use Filter function to filter items based on different situations, not set gallery's Visible which will hide the whole gallery.

     

    1)In first situation, you could set gallery's Items like this:

     

    Filter(tablename,Not(status.value = "In Progress" ,'Modified By'.Email = User().Email))

     

     

    2)In second situation, you could set like this:

    set the accept button's OnSelect:

     

    Collect(accepteditems,ThisItem.ID)

     

    set the gallery's Items:

     

    Filter(tablename,Not(ID in accepteditems.ID))

     

     

     

     

    Best regards,

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard