Checkbox Validation: No Error Message Shown When Required

Hi Discourse team,

I’m using the new form templates feature and have run into an issue with required checkboxes.
When I set a checkbox field with required: true in the YAML, the
form correctly prevents submission if the box is not checked.
However, no error message is shown to the user—the form simply does not submit, and the user receives no feedback about what’s wrong.

Here’s a sample of my YAML:

- type: checkbox
  id: accept-terms
  attributes:
    label: "I have read and I agree to the terms"
    description: "You need to accept terms to continue"
  validations:
    required: true

What I’ve tried:

  • Tested on the default Discourse theme (to rule out theme issues)
  • Updated to the latest Discourse version
  • Tried both required: true and accepted (the latter doesn’t work at all)

Expected behavior:
If the required checkbox is not checked, an error message should be displayed to the user indicating what needs to be done.

Actual behavior:
Submission is blocked, but no error or feedback is shown.

Is this a known limitation or bug in the current form template implementation?
Is there a workaround or recommended way to ensure users see a clear error message when a required checkbox is not checked?

Thanks for your help!