Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

update the client side people picker field in editform.aspx using jquery , spservices

$
0
0


Am writing a separate function to access the values from the editform, that's modified by the end user. so, inside presavection() am writing another function to update the list item with the ID, having fields like single line of text , spclientside people picker control and datetimefield.

but am facing issue while accessing the clientside picker field values, am not able to fetch the values.

also, am not able to update the datetimefield values as well. when i access the datetimefield values, am getting the format 

mm/dd/yyyy format. how to convert it so that, its saved in the list, using spservices?

   in the presaveaction()  AM trying to get the ppl picker field value by using the below code:

IT owner is the ppl picker field name in LIST. if the end user updates this value in the editform, i want to save it.

{

pplpickerITOwnerID = $().SPServices.SPGetCurrentUser({
    fieldName: "IT_x0020_Owner",
    debug: false
});

}

$().SPServices({ operation: "UpdateListItems", async: false, batchCmd: "Update", listName: "QA_LISTNAME1", ID: Id1, valuepairs: [["Title", strPPNumber],

["IT%5Fx0020%5FOwner", pplpickerITOwnerID], 

["Project%5Fx0020%5FStart%5Fx0020%5FDate", prjstartdate1]],

    completefunc: function (xData, Status) {

alert(Status  + '...is the status' );

            alert(Id1 + ' ...is the id of the list item');
        }
      });





Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>