Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Nicci Profile Picture
    194 on at
    Re: Validate numeric field for 2 digits

    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.

  • Yogesh Murugan Profile Picture
    443 Super User 2025 Season 1 on at
    Re: Validate numeric field for 2 digits

    Try validation for that text filed 

    try this

    If(
     Len(Textfiled) = 2, 
     SubmitForm(Yourform), 
     Notify("Please give 2 digit value") 
    )

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard