[Resolved] select the parent if user select the child JS
This thread is resolved. Here is a description of the problem and solution.
Problem:
select the parent if user select the child JS
Solution:
You need to add custom javascript code as shared with the following reply to check parent checkbox automatically when you select child checkbox.
Hi guys, is it possible to setup JS code for automaticlly select the parent if user select the child? I found this and im trying to parse it to my form without succes. It will be helful for another users of toolset.
it works almost perfect, but is there a way how to unselect parent ONLY if all of the child is unselect? Let me explain it better:
1) User select child of parent - it will select parent perfectly!
2) User select second child of parent - it will keep selecting of parent (its ok).
3) User unselect one of the child from parent - it will unselect parent :-/ - i just need to keep unselect parent when the one of child is selected
I need to unselect parent of child only if user will unselect all of the child of parent.