Webform confirmation message appears in first form when using multiple instances of same webform on a page

Created on 4 August 2022, over 2 years ago
Updated 28 May 2023, almost 2 years ago

Problem/Motivation

After form submission, the confirmation message appears in first form when using multiple instances of same webform on a page.

Steps to reproduce

1. Go to webform -> form, enable ajax and change confirmation settings of Contact form to inline.
2. Embed the Contact form in teaser mode of Article.
2. Create a view block of type article that renders the teaser mode.
3. Create a basic page and place above block, make sure each teaser mode has the webform embedded to it.
4. Submit the first form, it works as expected and shows the confirmation message.
6. Now, move to the second teaser and try submitting form attached to it. For this form, submission happens but confirmation message shows in the previous form.

Ideally, the confirmation message should be shown in the same block, the form was submitted from.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

6.1

Component

Code

Created by

🇮🇳India psingh10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024