Multilist with Search Field in Experience Editor

Xing Liu • 11/8/2016

Sitecore Multi List Search

In one of our Sitecore implementations using Sitecore version 8.1 Update-3, we have created a multilist with search field for one of my data templates and it worked fine in the Content Editor.  However, when the field is used in the Experience Editor's Field Editor dialog, the multilist with search field does not function as it should (i.e. no items are available to select and search does not return any results).

After contacting the Sitecore support, this issue was registered as a bug in the current version of 8.1.  I want to share the workaround for the issue below. (Thanks Sitecore support for the great help.  My Sitecore support ticket was responded quickly.) 

Try to modify the file \sitecore\shell\Controls\BucketList\BucketList.js

Sitecore.InitBucketList = function (id, clientId, pageNumber, searchHandlerUrl, filter, databaseUrlParameter, typeToSearchString, of, enableSetStartLocation) {
    . . . .
    /*self.contentLanguage = $('scLanguage').value;*/
    self.contentLanguage = $('ContentEditorForm').lang;
    . . .

Commented out the original and with the next line as the workaround.  I want to share this workaround in case you are working on the Sitecore 8.1 update-3 for your project.  Hope this helps. 

Xing Liu

Xing Liu is a Sitecore MVP with expertise in all aspects of ASP.NET and SQL Server development across a variety of industries including Government, Banking, Healthcare and Energy. He provides technical thought leadership and consulting to SymSoft and client development teams. Xing has deep expertise in using Sitecore Helix in an Agile delivery model to streamline the construction of complex Sitecore websites, portals and their associated authoring environments. Xing is also a globally recognized photographer with an Instagram following approaching 100,000.

Explore topics:

Other Blog Posts from Xing Liu