Skip to main content
added 58 characters in body; edited tags
Source Link
Ganesh Sanap - MVP
  • 46.4k
  • 22
  • 31
  • 63

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.?

I want to save multiselect dropdown in sharepoint field. I already referred few results in this site. Choice values in SharePoint : Test1,Test2,Test3,Test4,Test5.

From the custom dropdown choice field user will select multiple values i want to save the data in multiselect choice field in sharepoint 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");

But am not able to save the item. Its throwing error. could you please help me.

I want to save multi-select drop-down in SharePoint field. I already referred few results in this site.

Choice values in SharePoint : Test1, Test2, Test3, Test4, Test5.

From the custom drop-down choice field user will select multiple values I want to save the data in multi-select choice field in SharePoint 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");

But am not able to save the item. Its throwing error.

Can you please help me?

Source Link

SharePoint Multiselect Choice field Saving using PnPjs

I want to save multiselect dropdown in sharepoint field. I already referred few results in this site. Choice values in SharePoint : Test1,Test2,Test3,Test4,Test5.

From the custom dropdown choice field user will select multiple values i want to save the data in multiselect choice field in sharepoint 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");

But am not able to save the item. Its throwing error. could you please help me.