Skip to main content
Community site session details

Community site session details

Session Id : CrIDBtkJEk2T5rl2yO2i68
Power Apps - Building Power Apps
Answered

Visibilty of a datacard based on another sharepoint list.

Like (0) ShareShare
ReportReport
Posted on 7 Mar 2024 05:57:07 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:
  • ace991 Profile Picture
    9 on 08 Mar 2024 at 19:48:04
    Re: Visibilty of a datacard based on another sharepoint list.
    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!
  • ace991 Profile Picture
    9 on 08 Mar 2024 at 03:24:35
    Re: Visibilty of a datacard based on another sharepoint list.

    thanks both worked fine for me.

  • Verified answer
    v-jefferni Profile Picture
    on 07 Mar 2024 at 10:06:04
    Re: Visibilty of a datacard based on another sharepoint list.

    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,

  • Verified answer
    kelseytran Profile Picture
    292 on 07 Mar 2024 at 06:41:00
    Re: Visibilty of a datacard based on a sharepoint list.

     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!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading started