Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: idebr at iO commentedComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
idebr CreditAttribution: idebr at iO commentedPatch works as expected, thanks jrockowitz!
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented