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.

All other Modules /

Discuss all other Modules here.

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

Universal Autocomplete Field


Go to End
Reply


10 Posts   4418 Views

Avatar
martimiz

Forum Moderator, 1132 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.

Avatar
Querdenker

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: http://code.google.com/p/ss-module-formfields/issues/detail?id=1

Go to Top