Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Make a Datacard visible depending on another Datacard value

(0) ShareShare
ReportReport
Posted on by 14

Hi guys, I am having troubles with making visible my data card depending on another data card dropdown list that I have, actually I want my data card LMP disappear when I choose a "Male" sex.

 

I am putting this formula but somehow it shows me an error: If(DataCardSex.Selected.Value = "Female",true,false)

Gacosta24_0-1618412775120.png

error is here:

Gacosta24_1-1618413030052.pngGacosta24_2-1618413115416.png

Thanks everybody for your help!

 

Categories:
  • Verified answer
    Gacosta24 Profile Picture
    14 on at
    Re: Make a Datacard visible depending on another Datacard value

    I replace it with a radio choice and I managed to make my Datacard hide by putting the following command RadioSex.Selected.Sex="Female" but I don't know why it does not work with DataCardSex.Selected.Value <> "Female" nor DataCardSex.Selected.Value = "Female", strange

  • Gacosta24 Profile Picture
    14 on at
    Re: Make a Datacard visible depending on another Datacard value

    Is a Choice column with text field 

    Gacosta24_0-1618477140305.png

    Gacosta24_1-1618477151915.png

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Make a Datacard visible depending on another Datacard value

    @Gacosta24 

    What type of column is DatacardSex and what is actually being saved in it?

  • Gacosta24 Profile Picture
    14 on at
    Re: Make a Datacard visible depending on another Datacard value

    Hi @Drrickryp ,

     

    Thanks for answering, pardon me I am new to this,  I got this:

    Gacosta24_0-1618421149697.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Make a Datacard visible depending on another Datacard value

    @Gacosta24 

    Put DataCardSex.Selected.Value <> "Female" in the visible property of the card you want to hide.There is no need for the If() since the formula above reduces to either true or false. 

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1