Hello all! Here’s the scenario.
-
I have a layer with editable fields on a form.
-
On that layer I have a Rich Text Lite field for attachments.
-
The rich text lite field has a fieldname of chgAttachments.
-
On the form I have a computed Rich Text field with a default value of chgAttachments.
-
On documents that were created with a previous version of the form, the attachments show up in the Computed Rich Text field, on new documents the attachment does not show up in the Computed Rich Text field.
-
To hide the layer after attaching a document(s) here is the formula I use to do that:
@If(@Environment(“chgEditApp”) = “Vis”;
@SetEnvironment("chgEditApp";"");
@SetEnvironment("chgEditApp";"Vis")
);
@Command([RefreshHideFormulas]);
@If(@IsDocBeingEdited;
@Command([ViewRefreshFields]);
""
)
So, my question is this, how can I get attachments that were attached via a control in a Rich Text Lite field to show up in a computed Rich Text field on the same form? The attachments don’t even show up at the bottom of the document. If I look in the document properties there is a $FILE field indicating that an attachment is present.
Thanks in advance.
Keith