If somebody tries to type in a number above 1100mm I want it to refuse

  • Profile Image
    mandyj58
    Asked on November 30, 2013 at 06:29 AM

    Sorry don't know how to word the question I've got fields to enter a width in and a height in my form and in the width field I don't want the customer to be able to enter a number above 1100 is this possible and if so how?

     

    Thanks

  • Profile Image
    aytekin
    Answered on November 30, 2013 at 03:43 PM

    If you use the "Number" field you can actually set a max value. Please see the screenshot below:

  • Profile Image
    abajan
    Answered on November 30, 2013 at 04:09 PM

    @mandyj58

    In case there's any confusion, our founder (Aytekin) inadvertently indicated the wrong toolbar button in his screenshot. It's actually the Max Value one to which he was referring:

    (The Max Size button sets the number of characters [digits, in this instance] and not the upper value of numbers which may be entered.)

    Incidentally, if a max value restriction were to be set and a user entered a value greater than that allowed, they would see the following error message by default:

    (Notice how no such message is triggered when a number greater than 1100 is entered in the text box.)

    If there's anything else JotForm related with which we may assist you, please let us know.

  • Profile Image
    mandyj58
    Answered on December 01, 2013 at 09:37 AM

    Just wanted to say thanks very much for your quick answer :)