Skip to content

Duplicates the Userform Field Group feature to allow adding columns to forms

Notifications You must be signed in to change notification settings

Iliain/userform-columns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silverstripe Userform Columns

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Duplicates the Userform Field Group feature to allow adding rows & columns to forms

Installation (with composer)

$ composer require iliain/userform-columns

Requirements

Silverstripe Userforms 5+ or 6+

Config

Customise the dropdown options for column classes via yaml:

Iliain\UserformColumns\FormFields\EditableColumnStartField:
  css_classes:
    'col-12': 'Full width'
    'col-6': 'Half width'
    'col-4': 'Third width'
    'col-3': 'Quarter width'

You can also set the default classes for a row via yaml, or override the template:

Iliain\UserformColumns\FormFields\EditableRowStartField:
  default_classes: 'flex flex-row w-full gap-2'

About

Duplicates the Userform Field Group feature to allow adding columns to forms

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published