Adding UI macro for file attachment type field in incident table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 06:08 AM
Hi Experts,
We have a scenario i.e., we have a field called 'Upload document' and the type of field is file attachment. After that, We need a macro with the + symbol. if we click the + symbol, we need to add one more file attachment type field should populate.
Kindly see the below attachment for reference for better understanding.
If anyone knows help me out this scenario.
Thanks,
Regards,
Rakhesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 06:10 AM
If I understand your requirement right, you want to have multiple attachments on the file attachment field. This is not how the file attachment field works. you can only put one attachment per field. Much like an image field, as soon as you update the field, the old value is clear.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 06:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 06:32 AM
If you already have the file attachment fields, I'll assume they are hidden by a UI policy until needed and you only want to show the fields as they are needed. For example, if you have one file attachment, only show 1 field. if the person clicks the "+" in your case, it will display a second, and then a third, etc.
The way you have it with predefined fields limits the user to how many attachments they can actually use. An "unlimited" version of this would be to use a related list of attachments. This is a list representation of the paper clip attachments you see at the top of the form. Would something like that work for unlimited use and show only the attachments as they are needed?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 06:40 AM
Exactly!!!
Users mostly 8 attachments will use. more than 8 paper clips no needed.
So how I achieve my scenario?? I need to use the + paper clip for user selecting and needs to populate the file attachment field, and then third etc.