Skip to main content
Community site session details

Community site session details

Session Id : 472aqTShomUj2WJlHS7aXU
Power Apps - Building Power Apps
Answered

Show icon based on condition

Like (1) ShareShare
ReportReport
Posted on 4 Sep 2024 07:38:02 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:
  • Verified answer
    mmbr1606 Profile Picture
    13,477 Super User 2025 Season 2 on 04 Sep 2024 at 14:13:48
    Show icon based on condition
    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
  • Suggested answer
    narayan225 Profile Picture
    2,513 Super User 2025 Season 2 on 04 Sep 2024 at 08:09:59
    Show icon based on condition
    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!

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!

Loading complete