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

infroger created an issue. See original summary.

infroger’s picture

Issue summary: View changes
jrockowitz’s picture

@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?.

jrockowitz’s picture

Status: Active » Closed (works as designed)
tklawsuc’s picture

I'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.

Color           Cars         Trucks       Bikes
Blue            [____]      [____]       [____]
Green           [____]      [____]       [____]
Red             [____]      [____]       [____]
littledynamo’s picture

Category: Support request » Feature request
Status: Closed (works as designed) » Active

I 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?

jrockowitz’s picture

Status: Active » Closed (won't fix)

This feature request either needs to be sponsored or handled via a dedicated contrib module.

littledynamo’s picture

I 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.