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 / Visibilty of a datacar...
Power Apps
Answered

Visibilty of a datacard based on another sharepoint list.

(0) ShareShare
ReportReport
Posted on by 9

Hello , My question is: I want to set the visibility of a form's datacard which is from a sharepoint list,based on a value set in another sharepoint list.The value is set as a Yes/No field.How can I do that?

Thankyou!

Categories:
I have the same question (0)
  • Verified answer
    kelseytran Profile Picture
    292 Microsoft Employee on at

     Hi @ace991 ,

     

    Assuming you've already connected to both your SharePoint lists in your app, you can use a Lookup function to determine the visibility of the card.

    If(
     Lookup( ),
     true, false
    )

    A simple example would be like this - in the lookup, put the list your Yes/No column is in and then the second argument would be if its Yes/No; the if statement will see whether if statement is true, then the visibility will be true, if not, it won't be visible.

    ------------------------------------------------------------------------------------------------------------------------------
    If I answered your question, please accept my post as a solution and if you liked my response, please give it a thumbs up.

    Thanks!

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @ace991 ,

     

    Since it's a Y/N column, they're Boolean values by default when fetching from the list. You can use the field value directly in Visible of the Data Card:

    LookUp(SPList2, ColumnName = ThisItem.ValueColumn).YNColumnName

     

    Best regards,

  • ace991 Profile Picture
    9 on at

    thanks both worked fine for me.

  • ace991 Profile Picture
    9 on at
    So my code looks like this but it is incorrect with errors showing up,'Site Name' is a choice column what code  should i write so that the RTCIS value is looked or found based on the site name,i want to make it dynamic:
    If
    (
        LookUp(Notes,'Site Name'= "ABC" && RTCIS=true,RTCIS),
        true,
        false
    )
    Thanks in advance!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 271 Super User 2026 Season 1

Last 30 days Overall leaderboard