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.

Select an X amount of checkboxes

  1. Hi,
    I was wondering if this is an option in gravity forms already - or if anyone has a workaround.

    I have a form that has three columns with twenty items.
    You can only select 8 items in the first column. Only 10 in the second and only 15 in the 3rd.

    Edit: the javascript I had doesnt work!

    Cheers

    Posted 11 years ago on Monday June 7, 2010 | Permalink
  2. This isn't built in functionality of Gravity Forms. However, we have considered making it an option and may do so in the future. It may be possible to do with jQuery, but would take custom javascript to pull off if so.

    Posted 11 years ago on Monday June 7, 2010 | Permalink
  3. Sorry, missed this thread earlier. Here's a script that will work to limit the number of checkboxes selected.

    http://forum.gravityhelp.com/topic/limiting-the-amount-of-checkboxes-that-can-be-checked#post-6990

    Posted 11 years ago on Monday July 5, 2010 | Permalink
  4. When adding this JQuery Script, where is the most logical place to add it, without having to load an additional .js file, and so that it won't be overwritten by future upgrades?

    Posted 11 years ago on Wednesday October 27, 2010 | Permalink
  5. Future upgrades of Gravity Forms, future upgrades of your theme, or both?

    By putting the snippet in your theme, you won't have to worry about losing it with future upgrades of Gravity Forms. To keep your customizations safe from future upgrades of your theme, you'll either need to look at their documentation for the "safe" place to put custom code (most themes that provide updates have a place for custom code) or create your own.

    If you're not worried about future upgrades of your theme, then I'd add the code wherever your theme initializes it's other javascript functions. This is typically titled something like init.js.

    Hope this helps. :)

    Posted 11 years ago on Thursday October 28, 2010 | Permalink