- πΊπΈUnited States chrisolof
I just ran into this issue with webform 6.2.x. Two instances of the same AJAX webform on the page - both tied to the page's node as source entity. Both end up on the page with the same HTML ID in their form wrappers.
If I interact with the second webform instance (change to the next form page, for instance) nothing happens, but the first webform instance is driven instead. Basically we've got cross-talk on the AJAX channel between these two forms. Odd that they both come out with the same HTML ID. I hope to post a patch soon.
- πΊπΈUnited States chrisolof
No luck with the patch. I swapped out
Html::getId()
forHtml::getUniqueId()
, which gave me a guaranteed page-unique wrapper ID. I then attempted to persist this unique wrapper ID in the form state for later use in subsequent AJAX requests. Unfortunately it seems that the initial form state is lost upon the first AJAX request, which meant the original wrapper ID was lost too (and the AJAX connection to that specific instance of the form with it).It's possible someone more familiar with webform's AJAX system may be able to sort that out and somehow hang onto the wrapper ID. Maybe it's a bug that the initial form state is lost like that...
- π§πͺBelgium dieterholvoet Brussels
You should probably open a new issue, this one is closed with no way to reopen except for the maintainer.