cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimboSey
Helper V
Helper V

Change icon colour if users email is in SP list

Hello,

 

I have a gallery in my App, in the gallery is a thumps up icon, when pressed it logs the users email to my SP list column 'ThumbsEmail'.

 

Id like the icon colour to change from standard grey, to green if the users email is in the SharePoint list column for the selected gallery item.

 

I assume I need to use Lookup, and apply the code to the fill on the icon but as a PA novice Im not sure how.

 

Thanks

1 REPLY 1
JR-BejeweledOne
Super User
Super User

If the data source for your gallery is the same SP list, you shouldn't need to use lookup.   Lookup would just add additional overhead that's not needed.

 

Consider this: 

If( !IsBlank(ThisItem.Email) && ThisItem.EmailColumn = User().Email, 1stColor, 2ndColor)

 

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,109)