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.
Form_builder expects your theme to render the submit button as input[type=submit]. If your theme (ex: Bootstrap) renders the submit button as button[type=submit] the changes to the form will not be saved.
The use of button[type=submit] instead of input[type=submit] allow the developer a great opportunity to style the button to their needs.
Comment | File | Size | Author |
---|---|---|---|
#5 | form_builder-2581153-4-7.x-1.x-dev.patch | 792 bytes | SpartyDan |
Comments
Comment #2
ybabel CreditAttribution: ybabel commentedComment #3
torotil CreditAttribution: torotil at more onion commentedIs this still an issue with the newest release 7.x-1.15?
Comment #4
torotil CreditAttribution: torotil at more onion commentedComment #5
SpartyDan CreditAttribution: SpartyDan commentedForm_builder expects your theme to render the submit button as input[type=submit]. If your theme (ex: Bootstrap) renders the submit button as button[type=submit] the changes to the form will not be saved. The attached patch adds #form-builder-positions button[type=submit] to the javascript selector and fixes the issue.
The use of button allows for more styling options than does input.
Comment #6
torotil CreditAttribution: torotil at more onion commentedI've committed a patch like the last one (I simply removed the element selector instead of duplicating it) to 7.x-1.x.