Autocomplete text field for Silverstripe
PHP JavaScript CSS Scheme
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
code
css
javascript
templates
.editorconfig
.gitattributes
.gitignore
.scrutinizer.yml
README.md
_config.php
code-of-conduct.md
composer.json

README.md

silverstripe-autocomplete

Autocomplete text field for Silverstripe

usage

A field can be created as follows...

AutoCompleteField::create('MyTextField','My Text Field','',null,null,'LookupDataObject','LookupFieldName')

where it will accept values from the following dataobject field...

class LookupDataObject extends DataObject {
    static $db = array(
        'LookupFieldName'               => 'Varchar',
    );
}