Add Attachment customisation

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

11 Jan 2018

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

12 Jan 2018

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.

User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

17 Jan 2018

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

User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

17 Jan 2018

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests