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],
completefunc: function (xData, Status) {
["Project%5Fx0020%5FStart%5Fx0020%5FDate", prjstartdate1]],
alert(Status + '...is the status' );
alert(Id1 + ' ...is the id of the list item');
}
});