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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show / Hide Data Card ...
Power Apps
Answered

Show / Hide Data Card based on muliple conditions

(0) ShareShare
ReportReport
Posted on by 93

Hi,

I am trying to hide and show data card property with following code.

If((VarRecord.'Approver Status'.Value = "Pending" && VarRecord.'Approver email' =CurrentUser ), true,
false
)

Currently if currentuser is approver and value is "Pending" then data card  is visible. That part is correct and I dont want to change anything in it.
 
I want to add if HR person and approver both are current user then hide the datacard. 
HR person belongs to this : VarRecord.'HR person email'

Help me out if you know the condition!!

Categories:
  • Verified answer
    Jitendra_jangid Profile Picture
    128 on at

    Hi,

    try this one

    If(( VarRecord.'HR person email' =CurrentUser && VarRecord.'Approver email' =CurrentUser ),
     false,
     If((VarRecord.'Approver Status'.Value = "Pending" && VarRecord.'Approver email' =CurrentUser ),
     true,
     false
     )
    )

     

     

  • nrvrvl Profile Picture
    93 on at

    Thank you! @Jitendra_jangid It worked. 😃 

  • Verified answer
    WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @nrvrvl ,

    Would it be this 

    VarRecord.'Approver Status'.Value = "Pending" && 
    VarRecord.'Approver email' = CurrentUser &&
    VarRecord.'HR person email' <> CurrentUser

     

    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.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard