on click of save – show alert while preSave is running code?

Forums Dynamic Forms for SharePoint on click of save – show alert while preSave is running code?

Viewing 1 reply thread
  • Author
    Posts
    • #29829
      Jon Whisman
      Participant

      Hi,

      I have a few functions being called in preSave – but they take sometime to run depending on our app farm environment or the form data. What i’d like to do is show an spjs.dffs.alert immediately upon the user clicking save. The alert would be like: “saving…please wait”.

      The reason for this is because users are sometimes seeing a delay of a few seconds from the time they have clicked the save button to when the form is actually saved.

      Any way to do that?

    • #29831
      Alexander Bautz
      Keymaster

      You can try it like this in your dffs_PreSaveAction function:

      function dffs_PreSaveAction() {
          spjs.dffs.alert({
              "title": "Saving the form",
              "msg": "Please wait while saving the form...",
              "noBtn": true
          });
          // the rest of your code
      }

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.