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.

Can i limit the options a user can choose in a multiple choice field?

  1. kennethjaysone
    Member

    For example, i present them with 9 choices and get them to to only choose 6.

    Posted 13 years ago on Tuesday November 30, 2010 | Permalink
  2. Morten Knudsen
    Member

    +1 for an option to do that (feature request).
    choose 3 of the following sentences type of questions. would benefit a lot from having this kind of option :-)

    Posted 13 years ago on Tuesday November 30, 2010 | Permalink
  3. kennethjaysone
    Member

    We want to subscribe to some cable tv channels for our staffs. We got 9 channels offered and we're going to subscribe to 6. We want our staffs to vote so that the highest number of votes for the 6 channels will be subscribed.

    Posted 13 years ago on Tuesday November 30, 2010 | Permalink
  4. This post has a jQuery solution to accomplish this:

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

    This is something we would like to add in a future release as a native feature, however right now it can only be accomplished as a customization via jQuery.

    Posted 13 years ago on Tuesday November 30, 2010 | Permalink
  5. kennethjaysone
    Member

    Carl, thank you so much. So do i just import jquery and insert this additional script in the header to make it work? Replacing the number of entries i want to submit with (n)?`

    Posted 13 years ago on Wednesday December 1, 2010 | Permalink
  6. You would want to use WordPress enqueue function to call jQuery and then insert this script on your page to make it work, replacing the necessary code to do what you want to do as far as number of selections, etc.

    Posted 13 years ago on Wednesday December 1, 2010 | Permalink