Execute custom JS function only AFTER DFFS overlay is gone

Forums Classic DFFS Execute custom JS function only AFTER DFFS overlay is gone

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

      Hello again!

      Is there a pre-built function I can leverage that I can use to run a custom JS function only AFTER the DFFS overlay has gone away?

      I have a function that is doing the below, but I’m having to put a setTimeout on it to wait some time because the form is not fully rendered yet.

      Purpose of code: In the edit form: auto click the “Add New Folder” for the users. This form heavily relies on DFFS vLookup documents functionality.

      window.console && console.log(“Now attempting to Auto create folder and expand folder”);
      spjs.vLookup.initAddNewFolder(“vLookupAttachments”);
      spjs.vLookup.addNewFolder(“vLookupAttachments”, jQuery_documentationList, “/sites/siteName/SubSiteNamen”);

    • #37022
      Alexander Bautz
      Keymaster

      You can use the vLookupIsLoadedCallback function described in the user manual: https://spjsblog.com/vlookup-for-sharepoint/vlookup-user-manual/#vLookupIsLoadedCallback

      function vLookupIsLoadedCallback(fin){
      if(fin === "Your_FieldInternalName_here"){
      // Your code here
      }
      }
      

      Alexander

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