Copy file(s) from one file upload control to another
Can I copy the contents (files) of the upload control to another upload control? I would then like to clear the contents of the original upload control.
-
Hello Patrick,
Yes, you can get uploaded file object using eFormHelper.
Please refer the below documentation links.
To get uploaded files
https://documentation.agilepoint.com/00/appbuilder/cloudjsGetUploadedFiles.htmlCopy to another fileupload control using eFormhelper.
https://documentation.agilepoint.com/00/appbuilder/cloudjsAddFilesToFileControl.htmlRegards,
Aravind Rajanna -
Hello Patrick,
You can achieve it through JavaScript. Please try the below script, hope it might help.
Syntax:
$('[controlholdername="ControlInternalID "] .dz-preview').remove();
Example:
$('[controlholdername="FileUpload1 "] .dz-preview').remove();
Note: Running this script will remove it from the control level. Files will be in the Target Location.
Regards,
Aravind Rajanna
-
Hello Braj,
If attachments are not required for the next task, Please go to the control properties Advance Tab,
Select the option "Do Not Persist" from the dropdown Data Security Settings. When this option is selected data will not be present in the BackEnd(AgilePoint Process Data).
Please find the below screen capture.
Hope this helpRegards,
Aravind Rajanna -
I agree Harish. However there is no sense of referring same attachments for all the processes if Cloned the form to reuse form data only. Also if we want to remove it from Cloned form manually then it will remove attachments from original Process as well. There is no way to get rid off Old attachments like we can modify the form data but can't remove attachments.
Please sign in to leave a comment.
Comments
8 comments