Has-Many or Many-to-Many dropdown selection field.
JavaScript PHP CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
code
css
examples
javascript
README.md
_config.php
composer.json

README.md

SilverStripe ASM Select Field

Select multiple fields, with enhancement by javascript.

https://code.google.com/p/jquery-asmselect/

Example usage

//decorate member and add the following to updateCMSFields()
$groups = Group::get();
if($groups->exists()){
	$groupslist = new AsmselectField('Groups','Security Groups', $groups->map()->toArray(),$this->owner->Groups()->map('ID','ID')->toArray());
	$fields->addFieldToTab('Root.Security', $groupslist);
}