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
- Enable 'Use Ajax for all webforms' on /admin/structure/webform/config
- 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
- Write a patch
- Review
- Commit
User interface changes
Submitting the webform results a redirect to the configured URL.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3190397-3.patch | 620 bytes | jrockowitz |
Comments
Comment #2
idebr commentedComment #3
jrockowitz commentedComment #4
idebr commentedPatch works as expected, thanks jrockowitz!
Comment #6
jrockowitz commented