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.
Latest release of WebForm Matrix component is 7.x-4.27 and last commit was 18 Oct 2016. Questions:
1. Is WebForm Matrix component version 7.x-4.27 expected to work in Webform version 8.x-5?
2. If not, are there plans to port this component to Webform version 8.x-5?
Comments
Comment #2
infroger CreditAttribution: infroger commentedComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@infroger First off, I just want to say "Welcome to the Drupal community!!!"
The Weform matrix component has been replaced by built-in support for multiple composite elements in 8.x-5.x.
In my recent session as DrupalCon I start talking about multiple and composite elements.
https://events.drupal.org/baltimore2017/sessions/webform-8x-5x
Also see #2872320: Does webform support nested composites?.
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
tklawsuc CreditAttribution: tklawsuc commentedI'm not sure how the composite is a replacement for the matrix component. I cannot find a way to have a fixed list of rows with different labels along the left column and then several columns of text fields. The closest I was able to get is to create multiple copies of a composite field that has the columns but this creates separate fieldset and tables for each row. Note that this matrix has a fixed number of rows with specific labels for each row.
e.g. Say I want to have number text fields to enter the number of cars/trucks/bikes in each color. Btw this is just an example to illustrate the matrix design I need...not looking for a "better" or different way to capture this information.
Comment #6
littledynamo CreditAttribution: littledynamo commentedI have a requirement for the exact same scenario as you @tklawsuc where I need fixed number of labels on the left side and fields for each row but can't find any way to do it in Webform. Possible to revisit this as a potential feature request?
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThis feature request either needs to be sponsored or handled via a dedicated contrib module.
Comment #8
littledynamo CreditAttribution: littledynamo commentedI actually found a way to do this with the 'hidden' table feature. I found the answer here: https://drupal.stackexchange.com/questions/258478/populating-webform-tables I then created the table directly in the YAML.