Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 466 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 466 Bytes

silverstripe-autocomplete

Autocomplete text field for Silverstripe

usage

A field can be created as follows...

\TractorCow\AutoComplete\AutoCompleteField::create('MyTextField','My Text Field', '','LookupDataObject','LookupFieldName')

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

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