Page 1 of 1

Upload function when using related documents

Posted: 15 Mar 2019
by tobib
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 2479 times
Dialog form meta data.png
Dialog form meta data.png (16.76 KiB) Viewed 2479 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 2479 times
Is that somehow possible?

Many thanks in advance!

Regards

Re: Upload function when using related documents

Posted: 19 Mar 2019
by AlexZver
Dear tobib,

We are working on your issue.

Re: Upload function when using related documents

Posted: 19 Mar 2019
by AlexZver
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');
    }
}