CLASSIC DFFS? (Latest version saving issue)

Forums Dynamic Forms for SharePoint CLASSIC DFFS? (Latest version saving issue)

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #36245
      Paul Lynch
      Participant

      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

    • #36246
      Alexander Bautz
      Keymaster

      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

    • #36252
      Paul Lynch
      Participant

      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)

      • #36253
        Alexander Bautz
        Keymaster

        No problem, I’m glad you figured it out.

        Thanks for the donation!

        Alexander

Viewing 2 reply threads
  • You must be logged in to reply to this topic.