I have a page in SharePoint that builds a bunch of tables using JavaScript. I need to get the selected value of a multi-select field from a list and write that value to a column in a table. I've got all the other values I need, but this one either throws an error or returns [Object Object] depending on how I write it.
fieldValue = listItemArray[i].get_item(listFieldArray[j].fieldInternalName);
returns [Object Object] and when I expand fieldValue in the watch list in my browser debugger, it returns only the first option in the list, not the selected value, but still writes [Object Object] to the page.