Is there a way that I can add a link or a JS code on a Nintex 2013 form to give the user the ability to download all attachments within the form? Some attachment fields can include up to 20 documents and the users want to be able to download all at once.. Is there a way to do without having to write custom code on sharepoint?
as far as I know there is not such possibility OOTB within forms.
but you could workaround it easily following way.
all the attachments are stored in a hidden Attachments library. so can build a link that points to the library resp. single item's attachments on your own.
the link should look like this
file://<List URL>/Attachments/<Item ID>
when you click such a link, file browser should pop up and you should see all the item's attachments. from there you can copy ones that you need.
I tried this but can't see any items in this hidden library. I know for for a fact there are items in this library, because there are items with attachments in the list. When I click on an attachment, the following url is displayed:
http://<List URL>/Attachments/<Item ID>/<Attachment name>
How does this work exactly?
first of all protocol specifier makes the difference.
if you use http, browsers try to interpret it as a regular page and tries to render it.
at second, different browsers might behave differently.
just a quick reserch
|http||opens <ItemID>'s sharepoint folder view for items||reports 'Page not found'|
|file||opens windows explorer with <ItemID>'s folder content (attachemnts)||opens in a folder browser mode (like for a FTP site)|
see some examples - eg. chrome
My 2 cents on that is, if you try to access the attachments library from the browser, you won't be able to see anything.
But if you access the library/list through SharePoint designer -> all files -> your list-> attachments folder then you will be able to see a folder for each item ID created in the list. Those folders contain the attachments.
I would be incredibly interested in a blog post describing how you were able to accomplish this, if it is at all possible.
Certain future requirements make it seem as if it's knowledge that could be super useful.