Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Universal Autocomplete Field

Go to End

10 Posts   5520 Views


Forum Moderator, 1391 Posts

2 July 2010 at 3:25am

Looks like loading the jQuery UI breaks the field. The only core object loading the UI seems to be the FileIframeField, and because that is used by the Image Field, you can't have an ImageField and the AutocompleteField on the same form. Since I can't see the UI being used (?) I just block it from the AutocompleteField::Field() method:

Requirements::block(THIRDPARTY_DIR . '/jquery-ui/jquery-ui-1.8rc3.custom.js');

A bit crude maybe, but eh... Maybe it's the Autocomplete plugin in the UI? Anyway, the only other object I saw using the UI is the DOM. Haven't tested it, since I don't use the DOM so much, but I thought I'd mention.


Community Member, 2 Posts

9 November 2011 at 8:39am

In case somebody is still trying to use the AutocompleteField in the ModelAdmin - i got it working and posted my solution here:

Go to Top