Skip to main content

Version: 23.10

Attachments

The attachments property is used to configure the attachments card in the Details screen.

Journey Applicants supports the following customization options: duplicates, filter.

Attributes

All attributes are optional unless otherwise indicated.

AttributeDescription
duplicatesboolean
When set to true, duplicate attachments are removed from the attachments UI.
filterCurrentSpaceAttachmentsFilter
When configured, attachments that match the filter.regex pattern are included or excluded depending on the filter.action.

To review the list of supported attributes, see API Reference.

Example

The following example shows how to configure the attachments card.

src/configs/custom/applications.ts
import { ConfigCurrentSpace } from '@transact-open-ux/workspaces/dist/types';

export const applicationsConfig = ({ date }: any): ConfigCurrentSpace => ({
...
attachments: {
duplicates: true,
filter: {
action: 'exclude',
regex: '.zip',
},
},
...
});

export default applicationsConfig;

Display of attachments in the application

Certain file types will be displayed automatically in a modal dialog when you click on their links in the browser. Others wiil be downloaded.

File types that will be displayed in the modal dialog:

  • .pdf *
  • .html
  • .xml
  • .json
  • Plus the following image formats:
    • .jpg, .jpeg
    • .png
    • .gif

* Note: due to an issue with Chrome browser on the Android OS, PDF files will not display in the dialog on that browser/OS combination. Other Android browsers, such as Firefox, should work, however.

A link's icon in an attachments card will tell you whether it will open in the dialog or whether it will download. In the example below, the .png and .jpg files wiil open in the dialog, whereas the .xlsx spreadsheet file will download:

Attachment display links