Ok, so I changed the single quotes to double quotes on the var title fields, and now when I click save it actually saves. Nothing is being updated though.... if I had a column title incorrect somewhere, wouldn't the debug alert me?
Ok, just wanted to update on most recent steps. Changed field names from internal to titles and still no good... swapped around different fields with internal and single to double quotes and back and forth just trying different combinations. Still no good. I checked the items that are SUPPOSE to be updated, and they still haven't been touched... meaning the last modified is still yesterday's date.... so it's not hitting it at all for some reason....
This is the most recent code that actually allows me to save the form:
Ok, just wanted to update on most recent steps. Changed field names from internal to titles and still no good... swapped around different fields with internal and single to double quotes and back and forth just trying different combinations. Still no good. I checked the items that are SUPPOSE to be updated, and they still haven't been touched... meaning the last modified is still yesterday's date.... so it's not hitting it at all for some reason....
This is the most recent code that actually allows me to save the form:
<script language="javascript" type="text/javascript" src=" /sites/hp/JS/jquery-min.js"></script>
<script language="javascript" type="text/javascript" src=" /sites/hp/JS/jquery.SPServices-2014.01.min.js"></script>
<script language="javascript" type="text/javascript">
function PreSaveAction() {
var PCRNumberMain = $("input[title="PCR Number"]");
var ReleaseDateMain = $("input[title="Actual Release Date"]");
$().SPServices.SPUpdateMultipleListItems({
listName: "{11D7C2F8-8BCD-4EB8-A85C-10978D39BFED}",
CAMLQuery: "<Query><Where><Eq><FieldRef Name='NewColumn1'/><Value Type='Text'>" + PCRNumberMain + "</Value></Eq></Where></Query>",
batchCmd: "Update",
valuepairs: [["Release Date", ReleaseDateMain]],
debug: true
});
}
</script>