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 / Validate numeric field...
Power Apps
Unanswered

Validate numeric field for 2 digits

(0) ShareShare
ReportReport
Posted on by 194

Hi All,

I have a text field on a form that is set as a numeric type and I want to force 2 digits in the field before the user submits the form. How can I do this? Thank you!

Categories:
I have the same question (0)
  • Yogesh Murugan Profile Picture
    451 Moderator on at

    Try validation for that text filed 

    try this

    If(
     Len(Textfiled) = 2, 
     SubmitForm(Yourform), 
     Notify("Please give 2 digit value") 
    )
  • Nicci Profile Picture
    194 on at

    Where would this go under? which property/function? There's a lot more going on before submitting the form during the button and on the screen, but I wanted to make sure if you user types in '1' they are told has to be 2 digits and cant move forward if it's not.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard