Home › Forums › vLooup for SharePoint › Load parent form with folders in "open" state on load
- This topic has 6 replies, 3 voices, and was last updated 10 years, 4 months ago by
avala.
-
AuthorPosts
-
-
January 20, 2016 at 23:06 #9965
Is there a way to get a parent form to load a vLookup document library folder in the open state (showing files in the folder) when the form is loaded?
One other question about folders, is there a way to turn the “add folder” link off if one folder has been created? Thanks!
-
This topic was modified 10 years, 6 months ago by
chgrnet.
-
This topic was modified 10 years, 6 months ago by
-
January 28, 2016 at 23:18 #10070
Hi,
Sorry, but this is not possible without custom code. You find a code example below.To expand all first level folders, and remove the “new folder” link when one folder exists add this code to the custom js textarea:
function vLookupIsLoadedCallback(fin){ if(fin === "vLookupDocuments"){ if($("#dffs_vLookupDocuments").find("img.vLookupFolderIcon").length > 0){ $("#dffs_vLookupDocuments").find("img.vLookupFolderIcon").parent().click(); // Remove new folder link $("#dffs_vLookupDocuments").find("div.vLookupAddNewFolderLabel").remove(); } } }The field name “vLookupDocuments” must be replaced with the field you use in your setup.
Hope this helps,
Alexander-
February 19, 2016 at 16:56 #10346
Thank you for this code! It works perfectly!
-
-
February 19, 2016 at 20:47 #10352
Is there any way to have the mouse-over state of the folder always on, so the upload button always shows? Is there a way to change the upload button image to text or a different image?
-
February 20, 2016 at 01:04 #10367
Hi,
Just add this to the custom css:span.spjs_folder_btn{ display:inline!important; }To change the images, add this to the custom js:
spjs.vLookup.data.uploadImg = "/Path/to/the/image"; spjs.vLookup.data.folderIcon = "/Path/to/the/image";
Alexander
-
February 22, 2016 at 23:26 #10394
Thank you! This works perfectly!
-
-
February 23, 2016 at 15:19 #10403
This is perfect! Thank you both!
-
-
AuthorPosts
- You must be logged in to reply to this topic.