I'm trying to load a node containing an ajax webform and add it to an existing div, this works fine, but when I click to next step, the form is submitted to the webform action path.

Any idea?
Thanks!

              $.ajax({
                url: '/path/to/my/node/with/webform'
                success: function (data) {
                  // Add html to existing container.
                  $(data).appendTo('body');
                }
              });

Comments

facine created an issue. See original summary.

jrockowitz’s picture

Status: Active » Closed (outdated)
The Webform module's issue queue is for bugs, feature requests, and planning. Please post general support questions to Drupal Answers. You can also ask questions or help answer questions on the #webform channel on Drupal Slack.

I am not sure how you would fix this without having the webform use only Ajax.