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
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
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,275)