web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Multiple Visible, Mult...
Power Apps
Unanswered

Multiple Visible, Multiple If conditions

(0) ShareShare
ReportReport
Posted on by 71

Hello Experts,

 

- I am trying to create a SharePoint integrated custom form for on my lists. With this list I have a data card (#1) with a dropdown that has values "Yes" or  "No". Following this data card I have 8 other cards where their visible property has been changed with an IF condition to be true only if the initial (#1) dropdown has the selected value "Yes". 

- There is one of the 8 data cards with the previous IF condition where I would like to add a second IF condition based on a different dropdown value.

 

My question is...

How can I have add a second IF condition on the visible property of a data card, so the card is only visible if both desired values are selected?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @00236123 

    In the Visible property of the card, If(condition1 && condition2)

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @00236123 

    In the Visible property of the card, If(condition1 && condition2)

  • 00236123 Profile Picture
    71 on at

    I have tried using that with the below overall condition.

     

    If(
    DataCardValue9.Selected.Value="Yes", true, false &&
    DataCardValue14.Selected.Value = "Yes", true, false
    )

     

    But no success. The Card I desire to hide unless both conditions are true still shows when the second selected value is "No".

    Any other ideas. I appreciate all the help.

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @00236123 

    No need for the If(.. The below reduces to either true or false.  Both conditions need to be true for the entire statement to be true.
    DataCardValue9.Selected.Value="Yes" &&
    DataCardValue14.Selected.Value = "Yes"

  • Jawaharprem Profile Picture
    255 on at

    Hi,

    Datacard is not visible for "Rejected" if i select rejected.

    If(DataCardValue18.Selected.Value="Pending",true,false && DataCardValue18.Selected.Value="Rejected",true,false)

     

  • Community Power Platform Member Profile Picture
    on at

    Like @Drrickryp said, This is the right way: 

     

    If(DataCardValue18.Selected.Value = "Pending" && DataCardValue18.Selected.Value = "Rejected", true, false)

    No need to repeat the ,true,false part after "Pending".

     

  • varshajohar Profile Picture
    129 on at

    Hi, any chance how your issue sorted? I m facing same issue and not working anything

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard