Execute custom JS function only AFTER DFFS overlay is gone
- This topic has 1 reply, 2 voices, and was last updated 3 years, 3 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › Classic DFFS › Execute custom JS function only AFTER DFFS overlay is gone
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”);
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