Upload function when using related documents

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
tobib
Posts: 7
Joined: Tue Sep 18, 2018

15 Mar 2019

Hi everybody!

In a form I am using a related documents section with the function "fd.updateDroppedDocuments". This is working perfectly well when documents are attached with drag&drop. Then, some additional information is added to the attached document in the target library.

However, when the user uses the upload function on top of the section the dialog form for meta data opens and the user needs to fill in those additional information manually.
Upload function.png
Upload function.png (6.39 KiB) Viewed 2475 times
Dialog form meta data.png
Dialog form meta data.png (16.76 KiB) Viewed 2475 times
Is there any chance to prevent that this dialog form for meta data opens and the fields are set automatically? My goal is, that the user only needs to select the document that shall be uploaded and uses the ok button. After that, the upload should be complete.
Dialog form upload.png
Dialog form upload.png (8.33 KiB) Viewed 2475 times
Is that somehow possible?

Many thanks in advance!

Regards

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

19 Mar 2019

Dear tobib,

We are working on your issue.

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

19 Mar 2019

Dear tobib,

The function works only for drag-n-drop. As a workaround, you can prevent upload of the documents with the button by hiding it, for example, or add JS to the Edit Form, that will populate the fields on the form automatically.

For Edit Form, you can check if it's opened in dialog mode, then if the fields are empty - populate them:

Code: Select all

if (window != window.top && window.top.fd){
    if(fd.field('Title').value() == ""){
       fd.field('Title').value('Test');
    }
}

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests