This project has moved and is read-only. For the latest updates, please go here.


Multi-Select Dropdown Controls Don't Have Name Attributes


In SP2007 and 2010, I'm finding the different bits of multi-select dropdowns using selectors like this:
            // Find the important bits of the multi-select
            if(childSelect.Type === "M") {
                MultiLookupPickerdata = childSelect.Obj.closest("span").find("input[name$='MultiLookupPicker$data']");
                master = window[childSelect.Obj.closest("tr").find("button[id$='AddButton']").attr("id").replace(/AddButton/,'MultiLookupPicker_m')];
                currentSelection = childSelect.Obj.closest("span").find("select[ID$='SelectResult']");

In SP2013, there is no name attribute, so these selectors are failing.

I'm taking this opportunity to move more of the selector logic into the DropdownCtl constructor.

This issue affects:
  • SPCascadeDropdowns
  • SPFilterDropdown
  • SPSetMultiSelectSizes
Closed Dec 28, 2013 at 7:49 PM by sympmarc
Released in 2013.02


sympmarc wrote Dec 16, 2013 at 6:55 PM

Fixed in 2013.02BETA2