Drag and Upload file into Document Set from Form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Adam Reyes
Posts: 35
Joined: Tue Mar 04, 2014

18 Mar 2019

Hello, I have a form and when a new item (Project) is created a workflow starts and creates a Document Set with the same name of that new item. On that form I would like users to be able to drop documents into that related library. The issue I'm having is that I would like the files to be dropped into the Document Set folder instead of the root of the library so there are no conflicting file overwrites. Is there a function in javascript that can drop the files into the Document Set once it's been dragged onto the form?

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

21 Mar 2019

Dear Adam,

I'm sorry for a late reply. Please consider using the fd.updateDroppedDocuments() function: https://spform.com/javascript-framework ... ctionality

To upload the file in the certain folder you can 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 10 guests