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 / 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
    443 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard