//get logged in user and display overlay and close if not user
var loggedInUser;
sp.web.currentUser.get().then(function(user){
loggedInUser = user.Title;
if ( fd.field('CurrentLoggedInUser').value === loggedInUser || fd.field('CurrentLoggedInUser').value){
sp.web.lists.getByTitle('Approvals').items.getById(thisItem).update({CurrentLoggedInUser: loggedInUser});
fd.field('CurrentLoggedInUser').value = loggedInUser;
}
This is inside the spRendered handler and runs on form load, however when I debug it the debugger drops out on the line which updates the item, with no error message in the console.
What I'm attempting to do here is update a field on the current item in the Approvals list. Up until recently, this code was working fine with no issues.