Upload function when using related documents
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. 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. Is that somehow possible?
Many thanks in advance!
Regards
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. 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. Is that somehow possible?
Many thanks in advance!
Regards
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:
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');
}
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests