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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show icon based on con...
Power Apps
Unanswered

Show icon based on condition

(1) ShareShare
ReportReport
Posted on by 12
Hi,
 
I would like to show an icon only if the current logged in user is listed in a specific item in a gallery.
I have a sharepoint list which has a column "Attending". This is a 'person or group' type input.
 
How can I do this?
 
Regards,
Trond
Categories:
I have the same question (0)
  • Suggested answer
    narayan225 Profile Picture
    2,547 Super User 2025 Season 2 on at
    You can add an if condition in the visible property of the icon. It should check if the column's email value is equal to current logged in user's email value.
    Here is an example.
    If(Gallery3.Selected.'Created By'.Email = User().Email,true,false)
    Here, I am checking if the selected item in a gallery was created by the current user. If true, I set visible to true and if not it is false.
     
    Hope this helps.
    Cheers!
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    hey
     
    you can also try something like this in the visible property:
    If(
        Not(
            IsBlank(
                LookUp(
                    ThisItem.Attending,
                    Email = User().Email
                )
            )
        ),
        true,   
        false 
    )
    
     
     
    if it helped please mark as verified answer
     
    thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard