Skip to content

Drupal 8 module that provides new markup element to display checkboxes in a table grid

Notifications You must be signed in to change notification settings

minnur/webform_checkboxes_table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Webform Checkboxes Table

Webform checkboxes table (grid) component for Drupal 8 Webform module.

The idea is to display checkboxes field in a grid (similar to Likert field but supports multiple values).

Field title Option 1 Option 2 Option 3 ... Option N
Checkbox field title 1 [ ] [ ] [x] ... [ ]
Checkbox field title 2 [x] [ ] [x] ... [x]

Here is example YAML source of the checkboxes table grid.

checkboxes_table:
  '#type': checkboxes_table
  '#header':
    - 'Field Label'
    - 'Option 1'
    - 'Option 2'
    - 'Option 3'
    - 'Option 4'
  my_checkboxes_field_title:
    '#type': checkboxes
    '#title': 'My Checkboxes field title'
    '#options':
      'Checkbox 1': 'Checkbox 1'
      'Checkbox 2': 'Checkbox 2'
      'Checkbox 3': 'Checkbox 3'
      'Checkbox 4': 'Checkbox 4'
  another_checkboxes_field:
    '#type': checkboxes
    '#title': 'Another checkboxes field'
    '#options':
      'Option 1': 'Option 1'
      'Option 2': 'Option 2'
      'Option 3': 'Option 3'
      'Option 4': 'Option 4'

Module developed by Minnur Yunusov at Chapter Three

About

Drupal 8 module that provides new markup element to display checkboxes in a table grid

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages