Skip to content

FORMS-25355: Make checkedValue required in Checkbox dialog#1876

Open
vdua wants to merge 2 commits into
devfrom
fix/FORMS-1874-checkbox-required-values
Open

FORMS-25355: Make checkedValue required in Checkbox dialog#1876
vdua wants to merge 2 commits into
devfrom
fix/FORMS-1874-checkbox-required-values

Conversation

@vdua
Copy link
Copy Markdown
Collaborator

@vdua vdua commented May 6, 2026

Mark checkedValue as a required field in the checkbox component dialog to prevent silent fallback to the HTML default "on" when authors omit a value. The _cq_template.xml already provides "on"/"off" as defaults for new instances.

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

claude added 2 commits May 6, 2026 18:29
Mark checkedValue as a required field in the checkbox component dialog to prevent silent fallback to the HTML default "on" when authors omit a value. The _cq_template.xml already provides "on"/"off" as defaults for new instances.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: vdua <vdua@adobe.com>
- Set value="on" on the checkedValue dialog field so existing/programmatically
  created checkboxes without a stored JCR property see "on" as the default
- Add Cypress authoring tests verifying checkedValue is pre-filled with "on"
  and that the required validation blocks dialog submit when the field is empty

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: vdua <vdua@adobe.com>
@vdua vdua requested a review from rismehta May 6, 2026 15:38
@adobe-bot
Copy link
Copy Markdown

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link
Copy Markdown

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
page-has-heading-one moderate
target-size serious

1 similar comment
@adobe-bot
Copy link
Copy Markdown

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
page-has-heading-one moderate
target-size serious

@adobe-bot
Copy link
Copy Markdown

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

1 similar comment
@adobe-bot
Copy link
Copy Markdown

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants