Forums

[Plugin: Contact Form 7] Exclusive option not working (2 posts)

  1. tenholder
    Member
    Posted 11 months ago #

    I have a question and a (related) problem.

    I would like to have a form with a maximum number of checkboxes that can be checked. For instance, a question with 3 options, max 2 are allowed to check.

    I know about the 'exclusive' function. But I think that is for max. 1 checkbox. I think, because the exclusive function is not working at all.

    The code that I'm using:
    [checkbox* name use_label_element exclusive "1" "2" "3"]

    Something like this would be nice:
    [checkbox* name use_label_element exclusive:2 "1" "2" "3"]

    I'm using
    WP 3.1.3-nl_NL
    Contact Form 7, 2.4.5
    Contact Form to DB Extension, 1.8.7

    Anyone?

  2. HallMarc
    Member
    Posted 4 weeks ago #

    Just in case anyone else needs this answer:

    Where you put these option tags is important. For instance, for the exclusive option to work on the checkboxes it needs to be placed right before the list of options. Same with the field name, it needs to be placed right after the type. Here is an example:
    [checkbox fruit label_first exclusive "Orange" "Apple" "Grapes"]

Reply

You must log in to post.

About this Topic