cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Adding a minimum to a number field

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Adding a minimum to a number field

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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: Adding a minimum to a number field

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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,509)