I have a field set to 8 characters, but it allows entering numbers beyond 8 digits.

  • CASNR
    Asked on June 9, 2015 at 4:20 PM

    I have a number field set up with a limit of 8 digits. The field allows you to type as many numbers as you like, but then puts up a warning box telling you you are over 8 digits. It seems odd that you can keep typing after the limit.

     

    I there a way to not allow any entry after the 8th digit?

     

    The form is at:

    https://jotformpro.com/casnr/prf

     

  • David JotForm Support
    Replied on June 9, 2015 at 4:29 PM

    Hi,

    For that, you would want to change the Max Size property for the field:

    I have a field set to 8 characters, but it allows entering numbers beyond 8 digits Screenshot 20

    Changing that attribute to 8 will limit the maximum characters for that field to 8.  Here is my clone of your form with the changes made:

    http://form.jotformpro.com/form/51596754228970

    If you have any further questions, let us know and we will be happy to help.

  • CASNR
    Replied on June 9, 2015 at 5:31 PM

    I have it set to 8 max and it allows you to enter 9 digits.

    http://www.jotformpro.com/casnr/prf

     

     

  • David JotForm Support Manager
    Replied on June 9, 2015 at 6:10 PM

    Thanks for letting us know about this, we have reported this to our second level, you will be notified via this thread when it gets resolved.

  • alp_deniz
    Replied on June 11, 2015 at 8:33 PM

    Hello,

    The problem seems to be fixed. Could you please confirm?

    Kind regards

  • CASNR
    Replied on June 17, 2015 at 4:26 PM

    I've just tried both of my forms and they both allow the entry of what appears to be unlimited digits, but then throw up an error if you try to move on to the next question.

    If the number of digits is limited, shouldn't it not allow any entry after the limit?

     

    http://www.jotformpro.com/CASNR/saa

     

    http://www.jotformpro.com/CASNR/prf

     

     

  • David JotForm Support
    Replied on June 17, 2015 at 5:38 PM

    I checked your form and the number field still does indeed allow for over 8 digits even when set to allow for only 8.  This ticket is still open and I'll send another comment to the developers regarding it.

    In the mean time, you can use a text box field, set the validation to "Numeric" then set the character limit to 8:

    I have a field set to 8 characters, but it allows entering numbers beyond 8 digits Screenshot 20

    This should allow for the same thing you are looking for but using a text box instead.

    I cloned your form and setup the text box so you can see that it does indeed limit the characters to 8:

    http://form.jotformpro.com/form/51676424411957

    We will let you know as soon as we have an update regarding the number field.

  • liyam
    Replied on July 1, 2015 at 2:09 PM

    Hello,

    I've just made an update. It should now enforce the restriction on maxlength attributes set on the number fields in your form.

    Please let us know if you have further questions or concerns.

    Thanks.