dynamic/state-dropdown-field

A simple state dropdown field for SilverStripe forms

Installs: 10 362

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 6

Forks: 6

Open Issues: 2

Type:silverstripe-vendormodule

2.1.0 2019-02-06 17:35 UTC

This package is auto-updated.

Last update: 2024-12-05 05:36:52 UTC


README

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.

CI codecov

Latest Stable Version Total Downloads Latest Unstable Version License

Requirements

  • Silverstripe ^4.0

Installation

composer require dynamic/state-dropdown-field

License

See License

Example usage

public function getCMSFields(){
    $fields = parent::getCMSFields();
    
    $fields->addFieldToTab(
        'Root.MyTab',
        \Dynamic\StateDropdownField\Fields\StateDropdownField::create('States', 'States')
    );
    
    return $fields;
}

Maintainers

Bugtracker

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

  • Create a new issue
  • Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
  • Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.