Attachment

Description

Allows users to specify an attachment to upload, or to select a previously-uploaded attachment.

This is useful for workflows which require users to attach files such as scanned documents, receipts, photos, Word files, PDF files, etc.


Field settings (parameters)

NameRequiredDefault ValueDescription
Field name
 Yes
(auto-generated)

A descriptive name for this field. A random name is generated by default.

(info) You can also key in your own field name, which can be useful when integrating Scaffolding with other apps such as Reporting for Confluence. The field name is mandatory, and must be unique.
Helper Text
 Optional

Gives context or additional information about a field input. It will appear at the bottom of the field.

The helper text will only appear when you edit the content, not when viewing it.

Required
 Optional
Unchecked
If checked, the user must select an attachment (mandatory) and this field cannot be empty.
Include
 Optional

Only include file names which match the specified regular expression. 
Example: ".*txt" for all text files ( as opposed to "*.txt")

Note: ".*" is a Java Regular Expression for "any character of zero or more time occurrence".

Exclude
 Optional

Exclude any file names which match the specified regular expression. 
Example: ".*exe" for all EXE files ( as opposed to "*.exe")

Note: ".*" is a Java Regular Expression for "any character of zero or more time occurrence".

Macro/Field edit view

Notes

If you enable the Required option, you will not be able to Publish Content in editor mode until you have selected an attachment or added one. An example error message is shown below. Alternatively, you can click Cancel to discard the changes.