PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

input type=number : set min and max

  1. Spinal
    Member

    Number fields in GF are HTML5 <input type="number"> elements. However, it does not take full benefit of HTML5: the min and max values are not set.
    In other words, if I make a number field in GF and set the minimum value to 1 and the maximum value to 100, GF should create the element as such: <input type="number" min=1 max=100> which means HTML5-enabled browsers don't allow you to input numbers lower than 1 or higher than 100. Right now, GF does not do this (instead it outputs a text below the input explaining this), so please add this.

    -edit-
    For your convenience :) I think this should be added to common.php around line 3000

    Posted 11 years ago on Wednesday May 8, 2013 | Permalink
  2. Looking for this too

    Posted 11 years ago on Wednesday May 15, 2013 | Permalink
  3. Surbma
    Member

    +1 for this. I just wanted to write the same post. It is something you have to fix asap.

    Posted 11 years ago on Sunday June 2, 2013 | Permalink