这是内置的域 $V2AttachmentOptions 为1,显示附近,为0隐藏附件
然后通过公式根据要求是否显示附件
@If(!@Attachments; @Return(""); "");
"View attachments here:<br>" +
@Implode("<a href=/"" + @Text(@DocumentUniqueID) + "/$file/" + @AttachmentNames + "/">"+@AttachmentNames + "</a>"; "<br>")
然后通过公式根据要求是否显示附件
@If(!@Attachments; @Return(""); "");
"View attachments here:<br>" +
@Implode("<a href=/"" + @Text(@DocumentUniqueID) + "/$file/" + @AttachmentNames + "/">"+@AttachmentNames + "</a>"; "<br>")