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.

Letting a user chose 1 or 2 choices

  1. Hello
    I want to give a user the ability to select at least 1 and not more than 2 choices in a category. I thought of using 2 radio butuon fields (the first required and the 2nd optional). But then the user could choose the same category twice by mistake (or whatever reason) and possibly cause bugs to occur. I am thiniking of having that first radio button field and then have an other one pop up using coditional logic. The 2nd one will have all the categories exept the category that was chosen in the first radio button field.
    Is there a better way?

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  2. I ment drop down menu fields, not radio button fields. But I suppose they basicly have the same funcionality anyway...

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  3. Both Radio Buttons and Drop Downs are single selection fields. So they only allow a user to select one of the available choices.

    Checkboxes are multi-selection fields and the Multi-Select field itself is also a multiple selection field. So you would need to use one of those.

    Currently the ability to set a minimum and maximum number of selections is not a built in feature of Checkboxes or the Multi-Select field. You would need to implement this as a jQuery customization if you wanted to do something like that.

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  4. OK, thanks.
    Would the solution I thought of work? Or could it cause database problems, or other bugs?

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  5. Doing what you described using conditional logic isn't going to cause database problems. But it does mean you'll have to use more fields than necessary to implement something like this. Doing it with a single checkbox field using some custom jQuery would be less cumbersome.

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  6. Would the extra fields have any other downside except for the effort to make them? If not, think I might prefer my thought aestheticly.
    If there are other downsides, could you give me some guidelines on how to implement the custom jQuery?
    Thanks.

    Posted 12 years ago on Friday December 23, 2011 | Permalink
  7. Could I please have some feedback on this? :-)

    Posted 12 years ago on Thursday January 5, 2012 | Permalink