Highlighted

Adaptive Forms - Checkbox: How do I reference the label of a checkbox?

Avatar

Avatar

johnh86027037

Avatar

johnh86027037

johnh86027037

26-06-2018

I am creating an adaptive form that could potentially have over 1800 different panels.  Most of these panels are similar - so I would prefer to create a parent, then add an instance of that parent, based on the checkbox selected.

Instead of writing code for over 75 industries (if this.value = "0" || or "1" || or, etc), I want to use the checkbox label.

Object name - gets me the checkbox object name, but NOT the individual checkbox label value.

For example:  I want to use "Auto Body" and "Auto Service".  How can I reference these labels in AEM?

1516513_pastedImage_1.png

Can anyone help?