iliain/userform-columns

There is no license information available for the latest version (2.0.0) of this package.

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

Maintainers

Package info

github.com/Iliain/userform-columns

Homepage

Type:silverstripe-vendormodule

pkg:composer/iliain/userform-columns

Statistics

Installs: 13

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.0 2024-10-17 01:10 UTC

This package is auto-updated.

Last update: 2026-02-17 03:47:11 UTC


README

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'