I want to save multiselect dropdownmulti-select drop-down in sharepointSharePoint field. I already referred few results in this site. Choice
Choice values in SharePoint : Test1,Test2 Test2,Test3 Test3,Test4 Test4,Test5 Test5.
From the custom dropdowndrop-down choice field user will select multiple values iI want to save the data in multiselectmulti-select choice field in sharepointSharePoint list.
Now am getting results as var testvalue="'Test1','Test2'";
$pnp.sp.web.lists.getByTitle("TestList").items.add({ Testchoicefield:{results:[testvalue]}, LastModifiedByDisplayName:_DisplayUserName, LastModifiedByUserId:_CurrentUserID, LastModifiedOn:_modifiedon
}).then(function(resultdata) { idvalue = resultdata.data.Id; ShowMsgaddupdate("Data Saved Successfully", "", "Ok");
var testvalue="'Test1','Test2'";
$pnp.sp.web.lists.getByTitle("TestList").items.add({
Testchoicefield:{results:[testvalue]},
LastModifiedByDisplayName:_DisplayUserName,
LastModifiedByUserId:_CurrentUserID,
LastModifiedOn:_modifiedon
}).then(function(resultdata) {
idvalue = resultdata.data.Id;
ShowMsgaddupdate("Data Saved Successfully", "", "Ok");
But am not able to save the item. Its throwing error. could
Can you please help me.?