Can Input Mask be used to allow only a single digit between 4 and 9 inclusive?

  • Profile Image
    Bhfc
    Asked on February 07, 2014 at 03:55 PM

    Would like to have an input mask on a single character field that would only allow one of the following digits 4,5,6,7,8,9 to be entered. Is there a way to accomplish this in a jotform?

  • Profile Image
    abajan
    Answered on February 07, 2014 at 04:34 PM

    Yes, there is. From the last form you edited I can see that you're already familiar with the input mask feature. So, to restrict a textbox to a single digit, click the box and then the Input Mask button, enter just one hash (#) in the box, click OK and save the form:


    If you need further help with this, please let us know.


    Cheers

  • Profile Image
    abajan
    Answered on February 07, 2014 at 04:45 PM

    My apologies. I totally misunderstood your question. Our Input Mask feature can't be used for this. To allow digits only from 4 up you would have to replace the textbox with a Number field and set its Min Value to 4 and its Max Value to 9:


    That's what I did in this demo. If anything's unclear, please let me know.

  • Profile Image
    abajan
    Answered on February 07, 2014 at 04:52 PM

    Incidentally, if desired, the Number field's arrows (spinners) can be hidden via injected CSS.

  • Profile Image
    roiafblackgoat
    Answered on March 10, 2016 at 03:44 PM

    Hi there.  Two years later, same question.  I don't see a way to set Min Value or Max Value. Can you specify how that's done?
  • Profile Image
    Kevin_G
    Answered on March 10, 2016 at 04:48 PM

    @roiafblackgoat,

    Your question will be answered on this thread: http://www.jotform.com/answers/792226