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 / Contains and/Or functi...
Power Apps
Unanswered

Contains and/Or functions on visible

(0) ShareShare
ReportReport
Posted on by 557

I am trying to get a Visible function to work  based off of two values but I can't get it to work.  Below are the requirements any help is appreciated.

 

DataCardValue_1 EQUALS "Yes" &&

DataCardValue_2 CONTAINS "Save a Trip" 

 

OR

 

DataCardValue_1 EQUALS "Yes" &&

DataCardValue_2 CONTAINS "Home Delivery"

 

OR

 

DataCardValue_1 EQUALS "Yes" &&

DataCardValue_2 CONTAINS "Pharmacy Care Center"

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    Plz try this formula it may help you

     


    Visible = If(
    DataCardValue_1.Selected.Value = "Yes" &&
    (
    DataCardValue_2.Selected.Value = "Save a Trip" ||
    DataCardValue_2.Selected.Value = "Home Delivery" ||
    DataCardValue_2.Selected.Value = "Pharmacy Care Center"
    ),true,false)

    Thanks! 

  • joel914823 Profile Picture
    557 on at

    @Rajkumar_404  thank you .  Where I'm getting stuck is that it's not Equals on the Save a trip, Home delivery or Pharmacy care center.  These are all contains as those may be in the string.  How can I use contains vs. Equals?

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @joel914823 

    The formula would look like this:

    If(
     DataCardValue_1.Selected.Value = "Yes" &&
     (
     "Save a Trip" in DataCardValue_2.Selected.Value ||
     "Home Delivery" in DataCardValue_2.Selected.Value ||
     "Pharmacy Care Center" in DataCardValue_2.Selected.Value 
     ),
     True,
     False
    )
  • joel914823 Profile Picture
    557 on at

    @timl    When I put any other value in this case administration then it doesn't work as this is a combo box option.  The above formula only works if it equals Save a Trip by itself but not if it's contained in there.  Screenshot 2023-06-16 103247.png

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard