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 Apps
Unanswered

undefined

(0) ShareShare
ReportReport
Posted on by

Can someone help me figure out this,I need to display a datacard on selecting a button.However,I have 5 Hidden datacards and i need the second one displayed only if the first one is visible, and the same for the rest.

If(UpdateContext({vargeno:false}),UpdateContext({vargeno: true}),If(UpdateContext({vargeno: true}),UpdateContext({vargens:true}),If(UpdateContext({vargeno: true}) AND UpdateContext({vargens:true}),UpdateContext({vargend:true}),If(UpdateContext({vargend:true}) AND  UpdateContext({vargens:true}) AND UpdateContext({vargeno: true}),UpdateContext({vargenc:true})

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @jjk_88 ,

    That would mean that if the first card was visible, then so would all the rest ( this would cascade as each became visible)

    Without going into that, the easiest way to make Card2 visible only when Card1 is visible is the set the Visible property of Card2 to Card1.Visible

     

    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.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @jjk_88 ,

    Could you please share a bit more about your scenario?

    Do you want to display the second Data Card only when the first Data Card is visible, and same logic for the rest?

     

    Based on the needs that you mentioned, I think single one variable could achieve your needs. Set the OnSelect property of the button to following:

    UpdateContext({IsShow: !IsShow})

     

    Set the Visible property of the First Data Card (DataCard1) to following:

    If(IsShow, true, false)

    Set the Visible property of the rest of Data cards (Data Card 2 through 5) to following:

    If(
     DataCard1.Visible,
     true,
     false
    )

     

    Please take a try with above solution, check if the issue is solved.

     

    Best regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard