TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nagarajan Elumalai
NA
181
23.4k
SharePoint Multiselect Choice field Saving using PnPjs
Aug 13 2019 12:08 AM
Hi
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.
Reply
Answers (
2
)
Nintex flexi task creating multiple tasks
How to add button in sharePoint Mordern Page in Mordern UI?