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.
It took me awhile to figure out why my code to ajaxify the webform was not working. Ajax on the submit button needs the id on the button. That id is removed in webform_pre_render_remove_id(). The function checks for #states before removing the id, but it also needs to check for #ajax.
Comment | File | Size | Author |
---|---|---|---|
#3 | webform-ajax_id_check-2438363-3.patch | 1.26 KB | DanChadwick |
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedPatches welcome.
Comment #2
amaria CreditAttribution: amaria commentedOk. I left out the part that I'll submit a patch if no one else does, once I'm done with this project deadline. :)
Comment #3
DanChadwick CreditAttribution: DanChadwick commentedCommitted to 7.x-4.x and 8.x.