A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Hot answers tagged

2

The problem is the value you have in this variable accResponsible. User field in SharePoint list cannot be update using a var value, we need a SP.FieldUserValue to put it into the list. I find answer here using the person name instead the id is more easy than find user id if you don't have it. How to set any SP.Field Value with JSOM (Javascript) in ...


2

While using JSOM we need to use the internal name (and not the display name of column which you see in the list) of the SharePoint column in code. By looking at an error you are getting I suspect that you are using the wrong name of your PosType field. Check the internal name of your column by using the method given in below article and then use that name ...


1

Try using your code something like below: var oListItems; function GetAllListItems() { // You can optionally specify the Site URL here to get the context // If you don't specify the URL, the method will get the context of the current site // var clientContext = new SP.ClientContext("http://MyServer/sites/SiteCollection"); clientContext = ...


1

You can insert some code into React script editor web part to append the custom button. <script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { var commandset= $("button[name='Send by email'][role='menuitem']").parent()....


1

You should use a SharePoint Framework Extension to do this.


Only top voted, non community-wiki answers of a minimum length are eligible