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 / Hide DataCard based on...
Power Apps
Answered

Hide DataCard based on answers from two (2) other Data Cards?

(0) ShareShare
ReportReport
Posted on by 82

I have a Sharepoint List Edit Form where I'm able to hide an answer box based on the answer to a previous question e.g setting the visible property to 

 

Platform_DataCardValue.Selected.Value="Blue"

 

 

However, I have an answer that I ONLY want to be visible if a range of answers from question 1 is present OR a range of answer from question 2 is present: 


If

Answer 1 contains one of the following values: "Red", "Blue", "Orange" (only one can be selected it's a choice list)

Or

If

Answer 2 contains one of the following values: "One", "Two", "Three" (only one can be selected it's a choice list)

Then

Answer 3 is displayed

Else

Answer 3 is not displayed. 

 

 

Answer1_DataCardValue.Selected.Value="Red" or Answer2_DataCardValue.Selected.Value="One"

 

 

 in the visible property of Answer 3 results in "Incompatible types for expression. These types can't be compared: Boolean, text". 

No, I cannot change the choices for Answer 1 or Answer 2. They must be the text values. 

 

Categories:
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @tpcolson -

     

    Example one:

     

    Answer1_DataCardValue.Selected.Value in [
     "Red",
     "Blue",
     "Orange"
    ] || Answer2_DataCardValue.Value in [
     "One",
     "Two",
     "Three"
    ]

     

    Example two:

     

    Answer1_DataCardValue.Selected.Value = "Red" || Answer1_DataCardValue.Selected.Value = "Blue" || Answer1_DataCardValue.Selected.Value = "Orange" || Answer2_DataCardValue.Selected.Value = "One" || Answer2_DataCardValue.Selected.Value = "Two" || Answer2_DataCardValue.Selected.Value = "Three"

     

    Example three:

     

    Or(
     Answer1_DataCardValue.Selected.Value = "Red",
     Answer1_DataCardValue.Selected.Value = "Blue",
     Answer1_DataCardValue.Selected.Value = "Orange",
     Answer2_DataCardValue.Selected.Value = "One",
     Answer2_DataCardValue.Selected.Value = "Two",
     Answer2_DataCardValue.Selected.Value = "Three"
    )
    

     

  • tpcolson Profile Picture
    82 on at

    Thanks! Example 3 was the only that worked, odd, but it worked!

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard