The CreatorCon Call for Content is officially open! Get started here.

How to add an attachment from a catalog client script (onChange)

Spocktopus8
Tera Expert

There is a field on my Record Producer that is used to template information for a new record, when this reference field on my form changes, it fills in several fields, including an attachment field, however on these records there may be any number of additional attachments included. I need to get all associated attachments and add them to the RP before submission
I am able to add these attachments to the record using a insert Business Rule, but the requirement is that it is visible on the form before submission. I need a way to access 'add attachments' through script.

2 REPLIES 2

SoniaShridhar13
Giga Guru

@Spocktopus8 Hi! I think you're a lot better off doing this with a KB with the attachment attached to it, then you can show a link to the kb article at the top of the form with a display business rule using gs.AddInfoMessage(). The advantage here is that you're not copying attachments all over the place and creating a bunch of duplicates.

Community Alums
Not applicable

Hi @Spocktopus8 ,

 

I had a similar requirement, were you able to achieve the above solution.

 

If yes, Could you please share it with me.