# Checkbox Validation: No Error Message Shown When Required

**URL:** <https://meta.discourse.org/t/checkbox-validation-no-error-message-shown-when-required/371976>\
**Category:** Product Support\
**Tags:** form-templates\
**Created:** [June 27, 2025, 10:09am UTC](https://meta.discourse.org/t/checkbox-validation-no-error-message-shown-when-required/371976 "2025-06-27T10:09:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mirkomen77](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mirkomen77/32/217109_2.png) [@mirkomen77](https://meta.discourse.org/u/mirkomen77)\
**Post date:** [June 27, 2025, 10:09am UTC](https://meta.discourse.org/t/checkbox-validation-no-error-message-shown-when-required/371976/1 "2025-06-27T10:09:44Z")

</div>

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:

```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!

---

_[View the full topic](https://meta.discourse.org/t/checkbox-validation-no-error-message-shown-when-required/371976)._
