Home › Forums › Classic DFFS › CLASSIC DFFS? (Latest version saving issue)
Tagged: Save version
- This topic has 3 replies, 2 voices, and was last updated 1 year, 10 months ago by Alexander Bautz.
-
AuthorPosts
-
-
November 22, 2022 at 11:02 #36245
Hi Alexander,
We upgraded to the latest version of DFFS on one of our forms and now our JS button is not saving the form? Before we revert back wondered if there is any reason for this, or we need to update our code?
Everything else in the function runs, it sets the fields, processes the email template, but then the form just doesn’t save (we couldn’t see anything in the browser developer console) any ideas?
function NEWitem() {
var allReqFieldsFilled = spjs.dffs.check_Mandatory();
if (!allReqFieldsFilled) {
spjs.dffs.alert({
“title”: “Missing required fields”,
“msg”: “You must fill in all required fields”,
“ok”: function(){
// Close dlg
}
});
// Exit send fn
return false;
}
setFieldValue(“TWrecordcreated”, [spjs.dffs.buildValStr(“{timestamp[MM/dd/yyyy]}”),spjs.dffs.buildValStr(“{timestamp[HH]}”),spjs.dffs.buildValStr(“{timestamp[mm]}”)]);
setFieldValue(“TWEntryStatus”,”TW – record available”);
setFieldValue(“TABTRIGGER2″,”Detailed”);
spjs.dffs.processEmailTemplate(‘TWRecordCreatedConfirm’);
spjs.dffs.triggerSave();
}VERSIONS:
Pervious Version
4.4.5.0
Current Version
v4.4.5.45 – July 18, 2022 -
November 22, 2022 at 16:04 #36246
I cannot see anything special here. I could be related to the email so you can try commenting out the spjs.dffs.processEmailTemplate line and test.
It could also be that one of your hidden fields have a validation error that blocks the save. You can try opening the console and run this code to show all fields (after you have tried to save and failed):
jQuery(".ms-formtable tr").show();
This will show all rows – look through and see if you have any red validation messages.
Alexander
-
November 23, 2022 at 12:15 #36252
Thanks for this tip Alexander, Actually there was nothing wrong with the code, embarrassingly I had added the save function to the newform not editform (facepalm)
-
November 23, 2022 at 16:17 #36253
No problem, I’m glad you figured it out.
Thanks for the donation!
Alexander
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.