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.

Validation issues - number field and single line of text

  1. I'm having very strange issues with validation of a '0' value in either a number field (range set to min = 0, max = 99) or a single line of text field (initial value = 0) when either are required fields. In both cases neither the default value 0 or a typed in 0 are accepted or stored upon submission of the form.

    The "real" scenario has the question fields below a section break that has validation on it to show / hide the section based on a drop-down field (i.e. one set of questions shown to people who are attending an event solo versus a different set for those who are attending as part of a group of 2 - 5).

    I did a second form test with just the two field types and got the same results.

    PHP Version 5.1.6
    MySQL Version 5.0.45
    WordPress Version 2.9
    Gravity Forms Version 1.3.8

    For the time being in this particular instance I can turn required / validation off and hope that people are able to read / respond to questions accurately. I hope this is something that one might call an ID.10-T error or me taking crazy pills.

    Posted 14 years ago on Thursday December 31, 2009 | Permalink
  2. You aren't taking crazy pills, you are the first person to discover what is a bug in the validation. It isn't accepting 0 digit as a valid value for validation purposes.

    I have replicated it on my side and we will get it fixed in the net release.

    Posted 14 years ago on Thursday December 31, 2009 | Permalink
  3. Do I win a prize? :) A prioritization of a feature request of my chosing perhaps?

    Posted 14 years ago on Thursday December 31, 2009 | Permalink
  4. Our undying gratitude at the very least ;) Thanks.

    Posted 14 years ago on Thursday December 31, 2009 | Permalink