Skip to Content Skip to Menu

[SOLVED] collapse search field

  • HogeRaad
  • HogeRaad
  • OFFLINE
  • Posts: 22
  • Thanks: 0
  • Karma: 0
3 years 1 month ago - 3 years 1 month 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:
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
Last edit: 3 years 1 month ago by HogeRaad.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum