Closed (duplicate)
Project:
Drupal core
Version:
8.9.x-dev
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2012 at 14:18 UTC
Updated:
25 Jun 2020 at 11:26 UTC
Jump to comment: Most recent
Comments
Comment #1
David Stosik commentedFixed title.
Comment #1.0
David Stosik commentedAdd example issue.
Comment #3
torotil commentedI'm unable to reproduce this with Drupal 7.50 using a AJAX-enabled webform and the search form.
If the issue was reproducible with setup I'd have expected the webform to get #edit-submit thus triggering the AJAX-behavior on the search form.
Maybe this issue was fixed accidentally due to some other changes in Drupal-core. If it is still reproducible in 8.x then this might be a regression.
Comment #9
cilefen commentedComment #10
torotil commentedI also just tried to reproduce it with the original steps to reproduce but I couldn’t (with Drupal 7.63).
Setup
Steps to reproduce
edit-submit,edit-submit--2.edit-submit,edit-submit--2.Seems like this is not an issue in Drupal 7.
Comment #11
scottsawyerI am having this issue right now. I have a User Login Block and a Webform on the same page, and a warning in my console about duplicate id's, '#edit-submit'. This is also causing another issue because I have Ajax enabled on my Webform, which gets attached to my User Login Block, causing logins to fail with an Ajax error.
I see several Google is littered with reports of duplicate ID on #edit-submit, seems to be a persistent issue that rears it's ugly head under a variety of conditions with a minimal requirement of 2 or more forms on a screen.
Comment #12
cilefen commentedComment #13
bès commentedDuplicate of https://www.drupal.org/project/drupal/issues/1831560 ?
Comment #14
staceroni commentedI am seeing the same behavior as comment #11.
The PHP error written to dblog is: Symfony\Component\HttpKernel\Exception\HttpException: The specified #ajax callback is empty or not callable. in Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse() (line 67 of /data/var/www/html/ispe.org/public_html/web/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php).
I have a login in block in the header, and a webform submission with AJAX enabled in the sidebar.
The login form fails to work in this scenario.
I disabled the AJAX option in the webform, and this has resolved the issue.
Comment #17
andrewmacpherson commentedThere are several issues reporting this problem. I'm closing this one in favour of #1852090: Cached render elements can have duplicate HTML IDs, already noted by @cilefen in #12. That issue has much more information about the accessibility problems, and some suggested work-arounds. Neither issue has a patch yet.
Comment #18
andrewmacpherson commented