I get this error try to implement form in amp at Drupal for web form
Only XHR based (via action-xhr attribute) submissions are support for POST requests.
I get this error try to implement form in amp at Drupal for web form
Only XHR based (via action-xhr attribute) submissions are support for POST requests.
This work for me At the twig web/themes/custom//templates/webform/webform-custom.html.twig
<form action-xhr="{{ url('<current>') }}" {{ attributes }}>
{{ title_prefix }}
{{ children }}
{{ title_suffix }}
</form>