cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Super User

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
Super User

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response 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 (10,622)