Custom checkbox with parent and children Checkboxes

I want to create a checkbox list…

In which there will be a parent checkbox with multiple checkboxes in it (children checkboxes)

If someone selects a parent checkbox then all children checkboxes are also selected and vice versa…

Problem:

  1. If someone selects only the parent checkbox how to get values of all children’s checkboxes on form submission???

  2. If someone selects all children checkboxes then parent checkbox should also be selected (interaction)…

Can anyone help me on this??? I am open for custom code…

hi @ADIJ after few seconds on internet search this come as 3d option but I believe there will be more articles with examples how to achieve this effect. Hope that this will help you to solve your problem