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
Answered

Hide Datacard

(0) ShareShare
ReportReport
Posted on by 65

Hello,
I am attempting to show or hide a datacard based on the condition of two fields 
If DataCard1 ="xxx" from a drop down list & DataCard2 ="abc" from a text input the display DataCard3 if not hide DataCard3.

 

Thanks

Categories:
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    You would add that formula to the visible property of the data card you wish to hide/display.

     

    If(
     DataCardValue1 = "xxx" && DataCardValue2 = "abc", true, false
    )
  • twistsd Profile Picture
    65 on at

    I have tried that but it is not working. 

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Are you sure you are using the correct syntax?

     

    Your text datacard might need to be DataCardValueX.Text and the dropdown might need to be DataCardX.Selected.Value or something similar.

     

  • twistsd Profile Picture
    65 on at

    Thanks

    I have tried that also.Screenshot 2022-02-21 150405.png

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Are the data cards that contain the text and dropdown default or did you customize them by adding fields?

  • twistsd Profile Picture
    65 on at

    I have customized them with fields.

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Please share a screenshot of your expanded datacards in the tree view.  

  • twistsd Profile Picture
    65 on at

    @JR-BejeweledOne 

    Thanks,

     

    Here is the screen shot as requested.

     

    Thanks

    Screenshot 2022-02-21 152634.png

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Try changing your formula like this:

     

     

    If(
     dd_archivetype.selected.value = "xxx" && 'Transfer Type'.Text = "abc", true, false
    )

     

     

    Normally inside your data card you would have a DataCardValueX  for the field.  You can't reference the top level data card like you are trying to do.  You have to reference the item inside the data card that contains the value that you need.   In this case it will be your dd_archivetype and your Transfer Type.

  • twistsd Profile Picture
    65 on at

    @JR-BejeweledOne 

     

    Thanks I have tried that but it still won't work. 

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard