show related document folder when uploaded or drag

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Hnin Yu
Posts: 14
Joined: Fri Jun 07, 2019

01 Oct 2019

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?
Attachments
upload.png
upload.png (26.26 KiB) Viewed 4991 times

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

02 Oct 2019

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;

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests