From e5400af42398ebed0bb629ff61ac6c3967ad97d6 Mon Sep 17 00:00:00 2001 From: Pankaj Parashar Date: Tue, 9 Jun 2026 13:30:21 +0530 Subject: [PATCH] [FORMS-25355] Make checkedValue required in Checkbox v1 authoring dialog Authors could leave checkedValue blank, causing the HTML input to silently submit "on" with no authoring-time warning. Mark the field as required so the dialog cannot be saved without a value. The _cq_template.xml default ("on") pre-populates the field so authors are not blocked on new instances. Co-Authored-By: Claude Sonnet 4.6 --- .../form/checkbox/v1/checkbox/_cq_dialog/.content.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkbox/v1/checkbox/_cq_dialog/.content.xml b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkbox/v1/checkbox/_cq_dialog/.content.xml index 97c10253f7..1eaa04768e 100644 --- a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkbox/v1/checkbox/_cq_dialog/.content.xml +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkbox/v1/checkbox/_cq_dialog/.content.xml @@ -75,7 +75,8 @@ sling:resourceType="granite/ui/components/coral/foundation/form/textfield" fieldLabel="When Checked, return value" fieldDescription="Value submitted when the checkbox is checked. Enter the value as text. For boolean fields, use true. For numeric intent, enter values such as 1 as text." - name="./checkedValue"/> + name="./checkedValue" + required="{Boolean}true"/>