2
1
0

We have a form with a few "mandatory attachment blocks". We just use a business rule to ensure one of them gets attached.

I want to only show the attachments that had a file uploaded on the receipt.

I used this visibility script:

((!sfc.isReceipt()) || (sfc.isReceipt() && ({attachmentState} == 'Uploaded')))

But cannot get them to show on the receipt at all now.

Is there another way to do this?

    CommentAdd your comment...

    1 answer

    1.  
      3
      2
      1

      Hi Lin,

      If you show internal fields, inside the attachment block is an attachment manager block which contains a field called _attachmentKey and if this is blank then there is not an attachment for this block

      1. Lin VanOevelen

        Beautiful! Thanks Glenn.

      CommentAdd your comment...