Webform_shs elements in a webform composite element

Created on 16 November 2023, 8 months ago

Problem/Motivation

I am using the webform_shs element on a webform_composite element. After I have filled an webform_shs element on a row and I click the plus button to add another row, I get a new row with the webform_shs element filled in with the values of the previous row. Also the hidden select element that contains the value to be submitted contains no value. So if the form is directly submitted the values stored in the webform submission are not what the user sees, since the second row will contain an empty value for the webform_shs element.

Steps to reproduce

Create a webform with a webform_composite element containing a webform_shs element. Populate the element and add another row.

To make the webform_shs work with a webform_composite element I have applied the patch #3 at https://www.drupal.org/project/webform/issues/3400386 πŸ› Elements in custom composite element do not have webform_key Needs review

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece kostask

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

Comments & Activities

Production build 0.69.0 2024