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.

More than 9 checkboxes bug

  1. If you create a checkbox field with more than 9 choices, the form skips 10 when it renders.

    <li class='gchoice_1_9'><input name='input_1.9' type='checkbox'  value='9'  id='choice_1_9' tabindex='9'  /><label for='choice_1_9'>9</label></li>
    <li class='gchoice_1_11'><input name='input_1.11' type='checkbox'  value='10'  id='choice_1_11' tabindex='10'  />

    This causes the problem that the last checkbox is not saved when checked.

    Posted 13 years ago on Friday March 25, 2011 | Permalink
  2. What version of Gravity Forms are you using?

    I just verified using a form that looks like this:

    http://grab.by/9Gio

    It contains 12 checkboxes. I tested it by submitting 12 entries, each selecting one of the 12 checkboxes and it saved without a problem.

    Gravity Forms does skip id's 10, and some others due to how data is stored. This is by design. However you'll notice the id 11 in your example above is actually the option with the value 10.

    I'm unable to replicate this issue on my end using a checkbox containing more than 10 items, each with a sequential numeric value. This was done using Gravity Forms v1.5.

    Posted 13 years ago on Friday March 25, 2011 | Permalink
  3. I'm using 1.4.5 but I've tried it on 1.5 as well.
    The actual problem — not saving the last checkbox — is happening on a list of checkboxes created in code. So now when I skip 10 when building the list in pre_render is saves like it should. Thanks.
    You mentioned, "and some others." What other numbers do I need to worry about?

    Posted 13 years ago on Friday March 25, 2011 | Permalink
  4. @John0 I'd have to verify with our lead developer, I believe it skips multiples of 10. 20, 30, 40, 50, and so on. This is because doing certain operations with serialized array data there are problems distinguishing between 10, 100, 1000, 20, 200, 2000, etc. It has to do with processing serialized data.

    Posted 13 years ago on Friday March 25, 2011 | Permalink