SharePoint 2010 Client Object Model + set the value of a multiple lookup field with Javascript
问题 I'm trying to update a list item with the SharePoint 2010 Client Object Model and Javascript. The item I am trying to update has a Multiple Value Lookup field. I can successfully set this field, but only with one value. Does anyone know how to set it with multiple values? var _newLookupField = new SP.FieldLookupValue(); _newLookupField.set_lookupId(itemArray.toString()); //this works if array is only 1 item currentItem.set_item('Lookup_x0020_Field', _newLookupField); 回答1: var lookupsIds = [1