Adding UI macro for file attachment type field in incident table

Rakhesh
Kilo Guru

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 withfind_real_file.png 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

 

 

 

8 REPLIES 8

Chuck Tomasi
Tera Patron

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.

Tomasi,

 

thanks for the response.

I have a few more file attachment field types when I click + macro needs to populate file attachment field like below screenshot. please have a look.

 

 

find_real_file.png

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?

 

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.