Page 1 of 1

show related document folder when uploaded or drag

Posted: 01 Oct 2019
by Hnin Yu
Hello,

I had already created one list and that form included related document.
I would like to get automatically show the relative folder name when I uploaded document.How can I do it?

Re: show related document folder when uploaded or drag

Posted: 02 Oct 2019
by mnikitina
Hello Hnin Yu,

You can update the file path of the uploaded documents using the fd.updateDroppedDocuments() function:
https://spform.com/related-items/dynami ... point-form

Just add the folder name in the path:

Code: Select all

var newFileName = listItem.get_item('FileDirRef') + '/folderName/' + newName;