getgrav / grav-plugin-form

Grav Form Plugin
http://getgrav.org
MIT License
53 stars 79 forks source link

Single checkbox invalid input on required validation #549

Open robhuijben opened 2 years ago

robhuijben commented 2 years ago

Problem

When a form contains a single checkbox with required validation, the server side validation returns an 'invalid input' message and the form cannot be submitted.

Steps to reproduce

  type: checkbox
  label: "Agree to the terms and conditions"
  validate:
      required: true

Expected result

Validation should pass when checkbox is checked and form should be submitted.