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 / Adding checking if fie...
Power Apps
Answered

Adding checking if field is empty

(0) ShareShare
ReportReport
Posted on by 9

Currently my form field "Text" property has this following code 

 

 

 

If(IsMatch(DataCardValue24.Text,"\d+X",MatchOptions.Contains & MatchOptions.IgnoreCase),"","Please indicate quantity e.g 1X")

 

 

 

How can I insert one more check on if the field is empty ? Meaning if DataCardValue24.Text is empty, i should show "" because right now the error message is always showing even when user has not entered anything. 

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

    Hi @jense12,

    Modify as below:

    If(IsMatch(DataCardValue24.Text,"\d+X",MatchOptions.Contains & MatchOptions.IgnoreCase)||IsBlank(DataCardValue24.Text),"","Please indicate quantity e.g 1X")
  • jense12 Profile Picture
    9 on at

    thank you Qi

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