• Hey Guys,

    Does anyone know how to limit contact form checkboxes? I know how to enable multiple selections, but I can’t seem to limit the number of selections.

    Example – Choose 2 of the food from the list below. (MAXIMUM 2 CHOICES)
    -Rice -Noodle -Fruit -Seafood -Vegetables

    Does anyone know how to I get the form to validate that user has no more than 2 choices selected?

    • This topic was modified 8 years, 3 months ago by leoriclim.
Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same problem

    Multiple form controls are placed inside a single label element.

    it was generated by the form and still have error.

    <label>Language(s)<abbr class=”required” title=”required”>*</abbr>[checkbox languages “German” “Italian” “English” “Dutch” “French” “Chinese”]</label>

    Please let me know what is wrong in this code?

    Thread Starter leoriclim

    (@leoriclim)

    Hmm, why did you hijack my post? ??

    I’ll try to help you, if this doesn’t work, I’ll need more information than just “still have error”… Like telling me what error you received?

    Looks to me that your problem isn’t even remotely the same as what I’m facing. ??
    I’m asking if contact form 7 is able to validate if user has more than 2 choices selected, and reject the message if not.

    Meanwhile, you can try this. Disclaimer – Not an expert.
    <p> Languages </p>
    [checkbox* languages use_label_element “German” “Italian” “English” “Dutch” “French” “Chinese”]

    I believe you need to have “use_label_element” for multiple choices.

    sorry I did not do that on purpose ill try do your suggestion. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Contact Form – Multiple Options, but limited’ is closed to new replies.