Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to ensure only one checkbox checked at a time in multifield?

Avatar

Level 3

Below I have a multifield for a tab component and obviously at a time only one tab can be active, therefore the requirement is to have only one of the checkboxes checked at a time.

1733373_pastedImage_1.png

In this scenario there's only one checkbox. Radio buttons also have the same problem since each radio button in a multifield behaves independently and does not check for the status of other radio buttons in other multifields. Does anyone have a working example where this single checkbox validation occurs?

1 Accepted Solution

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Level 10

YOu would need to code at the Script level using JQuery to manipulate the DOM.

Avatar

Correct answer by
Level 10

Avatar

Level 3

Thank you. This script worked for me.