cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerAppsMx
Frequent Visitor

Hide value in dropdown according to the current user full name

Good morning,

 

So I have an app designed to have evaluations. And I put a dropdown filtering a dataverse table the human ressources appartement made with all the names (identifiant) and the status (En_Activité) of all the employes, whether they are working or not on the company. 

PowerAppsMx_0-1663931215507.png

Now, I have designed whether a person can evaluate or not another person, but even if this person can evaluate another one, this person could also be evaluated. So a person could be evaluated by another person but themselves.

 

So, this dropdown list is useful to choose who is the person you will be evaluating, but I want to hide the value according to the full name of the person who is using the app to evaluate according to the currentUser().FullName.

 

For the moment I have this code on the dropdown value:

 

SortByColumns(Filter(
'suivi de personnel dimension personnel';
En_activité = 'En_activité (suivi de personnel dimension personnel)'.Oui); "cr915_identifiant"; Ascending)

 

So in other words, I want to put something like "If (cr915_identifiant=currentUser().FullName)), hide"

 

Thanks for your help

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAppsMx
Frequent Visitor

I ended up using 'Nom employé'<>Blank()) in my same filter. Thanks !

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @PowerAppsMx ,

If I am reading this correctly, on the Visible of the control

!(cr915_identifiant = currentUser().FullName)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

PowerAppsMx
Frequent Visitor

I ended up using 'Nom employé'<>Blank()) in my same filter. Thanks !

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,634)