A FormField for users to select and remove multiple items to a record
This is a fork of the http://svn.gpmd.net/svn/open/multiselectfield/tags/0.2/
which has been updated for 3.1.
A FormField for users to select and remove multiple items to a record. Similar
to CheckboxSetField this handles both adding and removing entries backed by
relations (has_many, many_many) and saving text strings as comma separated list.
composer require "fullscreeninteractive/silverstripe-multiselectfield:dev-master"
private static $many_many = array (
'Departments' => 'Department'
);
..
$fields->push(new MultiSelectField(
"Departments",
"Departments",
Departments::get()->map('ID', 'Title')
));
private static $db = array (
'Departments' => 'Text'
);
..
$fields->push(new MultiSelectField(
"Departments",
"Departments",
array(
'Design',
'Development',
'HR'
)
));
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem