[SOLVED] collapse search field

2 years 6 months ago - 2 years 6 months ago #326304 by HogeRaad
Replied by HogeRaad on topic collapse search field
I was already happy that I got it working. :P
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:
$("#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:
#cbfv_65 { display: none;}//repeat for each field

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.204 seconds

Facebook Twitter LinkedIn