Can I make the block expand or collapsable on a page using formblock? Is there code that I could use? Any pointers?

Comments

choosewisely’s picture

You might want to take a look at .slideToggle() in the JQuery library.

http://api.jquery.com/slideToggle/#entry-examples

If you want your block to be collapsed on initial viewing use:

$("document").ready(function() {
  $("#block-block-n").slideToggle("slow");
  });

Don't forget to examine the markup of your theme to prevent all blocks from expanding/collapsing.

SocialNicheGuru’s picture

I am not familiar with js.
where would I place this?

MM10’s picture

Where would the js/html be entered?
"Show if the following PHP code returns TRUE (PHP-mode, experts only)"?
Apologies, I could use a little help here... but I do believe hiding the formblock in a field set would be a nice feature of the module.

mikey_p’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing out old 6.x issues.