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 / Require a text input m...
Power Apps
Answered

Require a text input match before submission

(0) ShareShare
ReportReport
Posted on by 10

Good morning,
I'm having an issue with one part of my statement. Prior to submission, i require one textinput within the edit form to contain one value or the other, however my current code isnt working. Thanks

f( IsBlank(textinputclaxxx)
||(IsMatch(textinputclaxxx, Match.Letter, MatchOptions.Contains)
|| (IsMatch(text_xxx_5) "x" || ""  //THIS PART IS WHERE I'M GOING WRONG
|| ( Value(Gallery2_1.Selected.Fixxx) = 0
|| xxx_dropdown_7.Selected.Ouxxx = Blank() || ""
|| xxx_dropdown_6.Selected.'Actixxx' = Blank() || ""
|| xxx_dropdown_6.Selected.ACTIxxx = Blank() || ""
)
)
, DisplayMode.Disabled, DisplayMode.Edit)  

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Dorset_Steve,

    If you want to check if the text_xxx_5 contains x, you should modify your formula as below:

    IsMatch(text_xxx_5.Text, "x" ,MatchOptions.Contains)

    Further, not sure why you add a "" with the "x", comapring the text_xxx_5 with "x" and "" at the same time?

     

    What's more, there is no need to list the Blank() and "" at the same time if you want to compare the blank string with the dropdown selected value in this situation.

  • Dorset_Steve Profile Picture
    10 on at

    It should be either an 'x' or blank.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Dorset_Steve,

    If so, in power apps, you need to compare it one by one:

    IsMatch(text_xxx_5.Text, "x" ,MatchOptions.Contains)||IsMatch(text_xxx_5.Text, "" ,MatchOptions.Contains)

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard