Skip to main content

Attachment

Properties | Events | Methods

Attachment Control allows users to upload, view, and edit files such as documents or images within a form, record, or workflow.

Properties

Custom

Max Filesize(MB)

'maxfilesize' string Defines the maximum file size allowed for upload (eg : 20kb,30mb,100bytes,40gb)

File Extensions

'fileextensions' string Defines allowed file extensions to restrict uploads to specific file types (e.g., JPG, JPEG, xltx etc.).

Auto Preview

'autopreview' boolean Displays a preview of the attached image. This works only for image files, not for other file types.

Allow Add

'allowadd' boolean This property allows options like Add File, Add Folder, and Camera

Allow Edit

'allowedit' boolean Allows editing features such as annotation on the uploaded file.

Allow Delete

'allowdel' boolean Enables the delete option for a file or folder.

Before After

'beforeafter' boolean Users are allowed to view the files attached before and After any event

Camera Only

'cameraonly' boolean Displays only the camera interface for capturing a photo, with editing options available for the captured image.

Allow Audio Attachment

'aaudioattach' boolean Allows recording and uploading audio files as attachments.

'alinkattach' boolean Allows attaching external links as attachments.

Allow Add Folder

'allowaddfolder' boolean Allows creating a new folder in the attachment section.

Allow PDF Annotation

'allowAnnotation' boolean Enables adding comments or notes (annotations) to files. Applicable only to PDF files.

Allow Camera

'allowcamera' boolean Allows capturing images using the device's camera.

Tag Field

'tagfield' string It stores category tags used to identify and search attachments easily.

DMS Folder ID

'dmsfolderid' string Specifies the folder ID within the DMS (Document Management System) where the file should be stored.

Support Parent Id

'supprntid' string Defines the ID of the parent file to which the current file will be attached as a supporting document (DMS-specific).

DMS File ID

'dmsfileid' string Specifies the file ID within a DMS folder where a new version or attachment should be uploaded.

Allow File Version

'allowfileversion' boolean Allows uploading versioned files for maintaining file history.

Allow Rename

'allowrename' boolean Allows to rename the uploaded file

Preview Type

'previewtype' json Define JSON sturcture to show list of attachment with image preview in list view

OnUploadComplete

'onuploadcomplete' string If Auto Close is enabled, the popup screen closes automatically after files are uploaded. If it is left empty, the popup screen will not close automatically and must be closed manually.

Attachment Share

'attachmntshare' string Enables users to share attached files with others directly from the control.For this the user can attach Allow Mode - as Whatsapp or mail, Table Object ID, Screen Object ID, Work Flow Object ID, Workflow Process Code

Attachment Template

'attachmnttemplate' string Enables the control to display an attachment icon, providing options such as view (eye icon) and download for the attached files.

Data

Image Type

'imgtype' String Specifies the image type to be either normal or thumbnail:

  • Normal – The uploaded file is stored as it is.
  • Thumbnail – The uploaded file is compressed automatically.

Others

Restrict Download

'restrictdownload' boolean If enabled, hides the download button and prevents downloading the file.

Expanded

'isexpanded' boolean If enabled, the attachment section will be expanded by default on load.

View Mode

'viewmode' string Determines how the attachments are displayed

  • List – Files are shown in a list format.
  • Grid – Files are displayed as thumbnails in a grid format.
  • Both – Users can toggle between list and grid view.

Max no of Files

'maxnooffiles' number Defines the maximum number of files that can be attached.

Attach Mode

'attachmode' string Defines how attachments are handled:

  • Open – Standard file attachment.
  • Before&After – Allows uploading a second file that is logically linked to the first one. Both versions are shown side by side for comparison.

Events

No Applicable Events included


Methods

For more information on Methods in this section, see the General-Methods .