I have used the custom link to open a webform using the modal form, but when I click on the link, the popup opens but then I get an Ajax HTTP Error:404, and it says that the custom path for the form, "/modal_forms/ajax/webform/2." Not sure why that is that path that is created, when the hardcoded custom path in the template is "/modal_forms/nojs/webform/2."


jcmartinez’s picture

You may want to try updating JQuery.

I was about to post my error code and I installed jQuery Update. It solved the problem for me.

Set jQuery Update to the version of jQuery 1.7 instead of 1.5 that comes with Drupal 7.

Hope it helps!

zil0484’s picture

I also encounter similar problem. Tried installing latest jQuery update but still the same problem occurred. Please help

Gabox’s picture

Issue summary: View changes

I changed the url, didn't use absolute and it works.
I know is not the best soultion, but works :)

ioustini’s picture

I changed the url from relative to absolute and the 404 errors stopped appearing.
Thank you :)

abarpetia’s picture

I am also getting same error message and I tried all the suggestions mentioned above but still its not working. So, Does any one found the correct solution for this?

jordilopezamat’s picture

Having the same issue i solved it after re-reading the documentation.

In particular the the Supported Forms specification

  • Webform : modal_forms/nojs/webform/%node


It is also possible to build links manually.
<a class="ctools-use-modal ctools-modal-modal-popup-medium" href="/modal_forms/nojs/ ...

In my case, leading to
<a class="ctools-use-modal ctools-modal-modal-popup-medium" href="/modal_forms/nojs/webform/253">

Which now opens the Webform in a nice modal window

Hope it helps someone else !

ElCodero’s picture


I'm receiving the same error. I've tried solutions from above, unfortunately that didn't help:

my config is:
drupal 7.41
jquery (current active is 2.1 via jquery update module, I've also tried 1.9, 1.7, 1.5)

I'm using absolute path to the webform like:

Actually the webform I'm pointing to is a custom module with a dependency to webform (dependencies[] = webform in my_form.info)

Could that be an issue?

abarpetia’s picture

@ElCodero: did you tried using absolute path? I used absolute path for webform and it worked for me.

ElCodero’s picture

thank you for your reply.

yes I'm using following absolute path to the webform: example.com/modal_forms/nojs/webform/24
I can see an POST 404 (not found) error in chrome's debugger console (example.com/modal_forms/ajax/webform/24) so I also guessed I'm using a wrong path
but I double checked this with typing in example.com/node/24 and I reach the webform.