Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jason Lau

    (@jason-lau)

    Hi,

    The problem is, HTML5 does not properly support the required attribute for array fields such as checkbox groups.

    In this case, you would have to resort to JavaScript to detect if one of the fields has been checked. However, JavaScript can be disabled by the user, thus bypassing the validation process.

    You could use a select menu instead of a checkbox group. A select menu supports multiple selections AND the HTML5 required attribute.

    When you create the select menu in User Meta Manager, use the following code in the Additional Attributes field –
    multiple="multiple" size="5"
    The size attribute can be adjusted to display the number items you wish to have visible.

    Plugin Author Jason Lau

    (@jason-lau)

    Scratch that suggestion, because User Meta Manager doesn’t support multiple selections for select menus. I apparently haven’t added that feature yet. I will add it in the next version.

    Thread Starter robrave

    (@robrave)

    Hi Jason,

    Thank you for the quick response. Can you please release the next version with the multiple select feature as soon as possible?

    Thanks.

    Plugin Author Jason Lau

    (@jason-lau)

    As soon as I can. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkbox Group – Required’ is closed to new replies.