Attachments Form Element
A form element that holds one or more attachments on a feature. The AttachmentsFormElement specifies how one or more attachments can participate in the form. When present in the form, the user has the ability to edit the list of attachments specific to the form element.
Since
200.5.0
Properties
True if the user can rename attachments added through this element, false otherwise. If false, client applications should prevent user-driven attachment renaming for this element. If not provided in the form definition, the default value is true.
Defines how existing attachments are associated with this element. This determines whether existing attachments are matched by any keyword, by an exact keyword match, or by an exact keyword match including attachments that have no keyword. If not provided in the form definition, the default value is AttachmentKeywordAssociation.Exact.
Returns all the current attachments. This is empty if attachments haven't yet been fetched.
True if attachment file names should be displayed, false otherwise. If not provided in the form definition, the default value is false.
The input types that can be used to add attachments.
True if the element is editable, False otherwise. This property can be modified by the editable expression, which can be set during Feature Form authoring.
The maximum number of attachments allowed for this element. This is null if there is no maximum configured.
The minimum number of attachments required for this element.
True if uploaded attachments preserve their original file name, false otherwise. If false, the attachment should be added without a name to allow the system to generate one automatically. If not provided in the form definition, the default value is true.
An array of validation errors for this element. The errors returned may be any of the following error types:
Inherited properties
A detailed description of the element.
A descriptive label that appears with the element. If not supplied, a FieldFormElement is labeled with the alias property of the associated field.
Functions
Adds a new attachment to this AttachmentsFormElement from the specified file.
Adds a new attachment to this AttachmentsFormElement.
Adds a new attachment to this AttachmentsFormElement.
Deletes an attachment from the Feature.
Fetches the attachments from the Feature and populates AttachmentsFormElement.attachments. Attachments are not re-fetched if they have already been fetched.