hi, if you have an attachment field within a form... you may upload ONLY ONE file?
is there a way to allow uploading many files into one attachment field?
thanks in advance
Lea
hi, if you have an attachment field within a form... you may upload ONLY ONE file?
is there a way to allow uploading many files into one attachment field?
thanks in advance
Lea
Hi Lea,
The following thread might be helpful to you:
Uploading Multiple Files/File Display
https://support.hcl-software.com/community?id=community_question&sys_id=bc189fcfdb06f45455f38d6d139619c0
Please check.
Yukiko
holly mother, so simple, thanks man!
You can place the Attachment item within a table. Then I would recommend having two single line fields; one for the filename and the other for the attachment ID. In the onItemChange event of the attachment item you can use the following JavaScript to set the field values:
BO.F_SingleLine0.setValue(BO.F_Attachment0.getValue().fileName.replace( "C:\\fakepath\\" , "" )); BO.F_SingleLine1.setValue(BO.F_Attachment0.getValue().id); |
Change the field IDs to match those for your fields. We also have to strip off the "C:\fakepath" that gets added by most common browsers.
Now your users can attach as many files as they want and have a way of seeing what they have added. You can hide the ID column by removing it from the defined columns on the Advanced tab of the table properties.
For Reference:
https://hclwiki.atlassian.net/wiki/spaces/HL/pages/461751/Working+with+file+attachments