I was already happy that I got it working.
I looked into your option and indeed it is a lot beter: No manual jquery load and all settings in CB instead of in the template.
New instructions
Needed plugin: CB Auto Actions
1.Go to Community Builder > Plugin Management > Auto Actions (grey block) > Click New
3. add the following settings on Global tab
Triggers: onBeforeDisplayUsersList
Type: Code
User: Automatic
Access: Everybody
3. add the following settings on Action tab
Method: jQuery
Code:
Code:
$("#cblabcb_FIELDNAME__").click(function () {
var x = document.getElementById("cbfv_65");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
});//repeat for each field
Add second row
Method: CSS (inline)
Code:
Code:
#cbfv_65 { display: none;}//repeat for each field