SDK Constants

This guide provides developers with an understanding of the constants exposed in DottedSign Embedded Signing SDK. These constants represent fixed values used throughout the SDK, providing a way to reference values without hardcoding them into your application.

Currently, there are two constant types: EMBED_TYPE and ELEMENTS_ID. Each constant type offers several items for users to utilize. You can reference them using the following syntax:

window.dottedSign.constants.<CONSTANT_TYPE>.<CONSTANT_NAME>

EMBED_TYPE

EMBED_TYPE represents the various embedding modes provided by DottedSign Embedded Signing SDK.

Constant NameDescription
CREATEThe mode to create a task from scratch, either using a template or uploading documents.

ELEMENTS_ID

ELEMENTS_ID specifies the HTML elements that will be displayed in the user interface. Its primary purpose is to allow users to toggle components, for example, using the [[hideElement()|doc:Main.Products.DottedSign.Open API.ReadMe.Guides.06. Embedded Signing.04. DottedSignEmbeddedSign Class.WebHome]] method.

CREATE

The following ELEMENTS_ID constants are available for use in the CREATE embedding mode, corresponding to the UI components shown below.

Constant NameDescription
CREATE_FROM_TEMPLATE06-embedded-signing-create-from-template.png
CREATE_ATTACHMENTS06-embedded-signing-create-attachment.png
CREATE_PREVIEW06-embedded-signing-create-preview.png
CREATE_CONFIRM_LABEL06-embedded-signing-create-corfirm-label.png