Problem/Motivation

A webform can be configured to use the 'get' method to submit to a configurable URL. However, the global 'Use Ajax for all webforms' (default_ajax in webform.settings) is applied to the webform. As a result, submitting the form results in an AJAX request that is not handled properly by Drupal and the user is not redirected to the configured URL.

Steps to reproduce

  1. Enable 'Use Ajax for all webforms' on /admin/structure/webform/config
  2. Configure a webform to use the 'GET' method on /admin/structure/webform/manage/content/settings/form

Proposed resolution

Do not apply default_ajax for webforms that use GET method.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

Submitting the webform results a redirect to the configured URL.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#3 3190397-3.patch620 bytesjrockowitz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

idebr created an issue. See original summary.

idebr’s picture

Issue summary: View changes
jrockowitz’s picture

Status: Active » Needs review
FileSize
620 bytes
idebr’s picture

Status: Needs review » Reviewed & tested by the community

Patch works as expected, thanks jrockowitz!

  • jrockowitz authored 2675a90 on 8.x-5.x
    Issue #3190397 by jrockowitz: Do not apply default_ajax for webforms...
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

  • jrockowitz authored 2675a90 on 6.x
    Issue #3190397 by jrockowitz: Do not apply default_ajax for webforms...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.