Is it possible to disable compact forms on specific pages?

I'm running into an issue Compact Forms with a webform block (#webform-client-form-1002). I'd like the block to use the compact form module, but I don't want the webform node page to use the module. Unfortunately, both forms have the same CSS ID.

Thanks!

Comments

grasmash’s picture

Found a solution.

I overwrote the Drupal.behaviors.compactForms function on specific pages using JS Injector module

I added js:

Drupal.behaviors.compactForms = function (context) {
    return;
};

and specified that it be injected on on "node/1002*"

Note: I had to uncheck "Preprocess js" so that this overwrite occurred after compact forms was called.