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 / Using Like or Contains
Power Apps
Answered

Using Like or Contains

(0) ShareShare
ReportReport
Posted on by 66

Hi !

Need a little help please!  Thank you in advance!

I have tried many variations and can't get it to work...I have a form field that cannot be populated by a certain source.  I'm trying to add an error message that says:
If SOURCE_ORG like '%UM%' and field is populated then give error as this source cannot populate this field.  I can't get the following formula on my card / label to work says my formula has errors

 

I put this on the Visible element of the card where I have the label to display the message if any source containing UM has populated an input field (DataCardValue234)

 

If(("UM" in ThisItem.SOURCE_ORG && !IsBlank(Value(DataCardValue234.Text)),true, false)

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

    @MEGA1 

    I'm on a mission to remove unnecessary If() functions.

    "UM" in ThisItem.SOURCE_ORG && !IsBlank(DataCardValue234.Text)

    Reduces to either true or false by itself

     

  • MEGA1 Profile Picture
    66 on at

    @Drrickryp Thank you so much!  This absolutely worked!  I just changed the "in" to "exactin" because it's case sensitive.  I'll have to poke around for a way to ignore case but otherwise this worked, thanks again!!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard