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 / Card visible based on ...
Power Apps
Answered

Card visible based on a variable

(0) ShareShare
ReportReport
Posted on by 45

I am using a PowerApps from a SharePoint list.  I have 1 variable that will either bet set to Finance, Contracts or All.  I need a card visible if it equals Contracts OR All. 

 

I tried If(varRequired="Contracts, true, If(varRequired="All", true),false) and it does not work.  I tried a lot of other formulas too but nothing has worked.

 

Thanks for all the help.

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @Poseidon10 ,

     

    Please try:

    varRequired = "Contracts" || varRequired = "All"
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Poseidon10 add this to Visibile varRequired in ["Contracts", "All"]

  • Poseidon10 Profile Picture
    45 on at

    Worked perfectly, thank you.

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
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard