- Issue created by @ludo.r
- πΊπΈUnited States veronicaSeveryn
Have the same issue and cannot figure out why it happens..
Have a view block on a page that loads a content block based on exposed filter (with a webform field on it), the view is using AJAX.
After that block is loaded on the page, the webform rendered within that block gets the action as "/views/ajax", while if the webform is simply placed on the page by itself, the action URL will be "/current_page_path" - π§πͺBelgium ludo.r Brussels
I did succeed to make it work by using a custom module just to handle AJAX loading of webforms.
See:
- https://www.drupal.org/project/drupal/issues/2934463#comment-12863925 π Ajax is broken in forms built within an Ajax callback Active
- https://www.drupal.org/docs/contributed-modules/webform/webform-cookbook... β
Basically you need a custom module with a custom route, and then trigger the AJAX loading through javascript.
- Status changed to Closed: works as designed
10 months ago 9:21am 27 June 2024