Page 1 of 1

Add Attachment customisation

Posted: 11 Jan 2018
by Roo
Hi Dmitry/Nikita

Happy New Year,

Is it possible to alter the "Attach File" Options? What I would like to do is to Categorise each attachment from a dropdown list when the user adds an attachment to a list item.

If this has already been done - appologies, I was unable to find it.

Thanks

Re: Add Attachment customisation

Posted: 12 Jan 2018
by Dmitry Kozlov
Hi!
Happy New Year!
Unfortunately, you cannot categorize attachments but as a workaround, you can use related documents instead of the attachments. Please, read the article:
https://spform.com/documentation/related-documents

You can store a category in a separate column of a linked document and sort the view by this property.

Re: Add Attachment customisation

Posted: 17 Jan 2018
by Roo
Hi Dmitry
This seems to be ideal as a solution. I think i've set up everything correctly, however I cant seem to set the document id (relatedTitle) and as soon as I close the document the link disapears. In the related item column (parentTitle) the column is not updating when i drag and drop the document into the related items.

I have a css class as related-docs on the related items and in the Javascript I have:

fd.updateDroppedDocuments($('.related-docs'), {
ParentTitle: GetUrlKeyValue('Chemical')
});

If I create a document in the document library and hard code the "ParentTitle" field it works, However when I drag and drop the parent field doesn't update.

The relatedTitle should come from the form field "Chemical"

I've read your blog , but am unsure what I am doing wrong. My version is 3.1.4 so things are slighly different from the blog

Thanks

Rupert

Re: Add Attachment customisation

Posted: 17 Jan 2018
by Roo
Hi Dmitry - I've resolved this and it is all working now.

The chemical field was in fact named something else (ID)

Sorry to trouble you. Great Product.