Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to get rid of unwanted duplication of values in new instance?

Avatar

Level 1

I have a subform that has radio buttons. I want to add a "new instance" of the subform, but when I preview the document, the new radio button group clones the selection of the original group when I click on the. How do I get the radio buttons in the new instance to work as independently of to the originals?

2 Replies

Avatar

Level 7

Weird. I created a table - one row, two radio buttons. I also created a button to add an instance and the new row gets new unselected radio buttons.

If you are still having difficulty, you could always just change the raw value after creating the new instance, but you would need to used the instance manager to target the correct instance to change the rawValue of.

1574280_pastedImage_6.png1574251_pastedImage_0.png

1574276_pastedImage_1.png

Unselected original

1574277_pastedImage_2.png

One RB selected

1574278_pastedImage_3.png

New instance created, RB not duplicated

1574279_pastedImage_4.png

Avatar

Level 10

Do you use a global binding for you radion buttons? If so the behavior is correct. For individual values for eaxch instance you`ll have to change the binding to name.