Forums

Embedded checkbox groups Category/Subcategory

simelas 29 Apr, 2016
Hi Bob,

In CFV4 i had build via custom code a checkbox group showing Category and Subcategory like this one:

Category1
Subcategory1a Subcategory1b Subcategory1c

Category 2
Subcategory2a Subcategory2b Subcategory3c

etc...

Category and Subcategory where two "embedded" check box group.

Any simple way to do the same with CFV5 ? ( I am re-exploring CFV5 for new projects and try to avoid reinventing the hot water .....).

Best

simelas
GreyHead 30 Apr, 2016
Answer
Hi Simelas,

You could do it with Custom HTML in a Custom Code action.

I'd probably do it with a series of separate CheckBox + Checkbox Group pairs and hide the Checkbox group until the parent Checkbox is clicked.

You can give all the parent Checkboxes the same array name if necessary e.g. category[] - but make sure that the IDs are distinct.

Bob
This topic is locked and no more replies can be posted.