On a custom content type I have created, there is a List(text) field called "Assigned to" that has a drop down selection of certain emails. (E.g [email protected], [email protected], [email protected], etc.)
I have a separate view that displays fields from that content type.
I am looking for a way to filter results where the Logged in User's email field equals what is in the "Assigned to" field.
I thought of using a Contextual Filter, but that would require the user's email to be in the URL.
Could I use php code as a way to make the default contextual filter value equal the logged in user's email?
I have tried to use the following with no success:
global $user;
echo($user->mail);
Thank you.