A simple state dropdown field for SilverStripe forms. This dropdown defaults to US states and CA provinces but allows for the source to be overridden.
"silverstripe/framework": "^3.2"
composer require dynamic/state-dropdown-field
public function getCMSFields(){
$fields = parent::getCMSFields();
$fields->addFieldToTab(
'Root.MyTab',
\Dynamic\StateDropdownField\Fields\StateDropdownField::create('States', 'States')
);
return $fields;
}
See the docs/en folder.
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