The Signature element allows the user to sign the form using the touch screen or mouse of their device. View more information about Form Element Types.
Properties
Property | Required | Type | Default | Description |
---|---|---|---|---|
type | Yes | string | 'draw' | The type of Form Element |
name | Yes | string | N/A | The key that will be assigned a value in the submission data when the form is submitted |
label | Yes | string | N/A | Display text presented to the user above the input by default |
hint | No | string | N/A | A hint triggered by an icon tooltip to be displayed when hovering beside the element label |
required | Yes | boolean | false | Determine if this element requires a value drawn by the user (true) or not (false) |
storageType | No | string | N/A | How the drawing will be stored: private, public, legacy |
The Signature element also inherits the properties of the following:
- Base Element
Example Element
{
"id": "b1311ae0-6bb7-11e9-a923-1681be663d3e",
"type": "draw",
"name": "signature",
"label": "Sign Here",
"storageType": "private",
"required": true
}
Example Submission Data
Private/Public Storage
{
"submission": {
"[element.name]": {
"s3": {
"region": "ap-southeast-2",
"bucket": "customer.forms.oneblink.io",
"key": "submissions/1/attachments/44cdee6f-edbd-4620-aaf5-df25ce976e43"
},
"url": "https://auth-api.blinkm.io/submissions/1/attachments/44cdee6f-edbd-4620-aaf5-df25ce976e43",
"contentType": "image/png",
"fileName": "dot.png",
"id": "44cdee6f-edbd-4620-aaf5-df25ce976e43",
"isPrivate": true
}
}
}
Legacy Storage (Deprecated)
{
"submission": {
"[element.name]": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAAIElEQVQYV2NkYGBoYGBgqGdgYGhkZGBg+M8ABSAOXAYATFcEA8STCz8AAAAASUVORK5CYII="
}
}
Comments
Let us know what was helpful or not helpful about the article.0 comments
Please sign in to leave a comment.