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 a minimum to a ...
Power Apps
Answered

Adding a minimum to a number field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I set up a form that has a user input an account number. I set a maximum so it cannot go over 10 digits. However, I need to set a minimum at 10 so they don't submit a partial account number.

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    Easiest way to control that is to set your submit button based on the validation of that field.

     

    Example:  On the DisplayMode property of your submit button:

       If(Len(textInputField.Text)<>10, Disabled, Edit)

     

    This way the button is not available unless they have a valid length number.

    Might also want to consider changing the back color of the field or making a label visible if the length is not 10.

     

    Hope that helps.

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

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard