Closed (won't fix)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Apr 2017 at 14:24 UTC
Updated:
8 Jan 2020 at 12:45 UTC
Jump to comment: Most recent
Comments
Comment #2
infroger commentedComment #3
jrockowitz 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 commentedComment #5
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 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 commentedThis feature request either needs to be sponsored or handled via a dedicated contrib module.
Comment #8
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.