1. Fields
  2. Signature Field

Fields

Signature Field

The Signature Field allows for capturing a digital signature.

Basic usage

Adds a signature field to the fields of an action.

{
account_owner_signature
:
{
name
:
account_owner_signature
__key
:
account_owner_signature
fieldtype
:
signature

Result

The field will be displayed as a signature field as below:

The resultant data will be available in the stubpost.data as:

{
account_owner_signature
:
{
data
:
[
1 item  
0
:
{
penColor
:
black
dotSize
:
0
minWidth
:
0.5
maxWidth
:
2.5
velocityFilterWeight
:
0.7
compositeOperation
:
source-over
points
:
[
5 items  
0
:
{
time
:
1727078862115
x
:
258.5
y
:
114
pressure
:
0.5
1
:
{
time
:
1727078862221
x
:
258.5
y
:
97
pressure
:
0.5
2
:
{
many_more_points
:
...
3
:
{
time
:
1727078864724
x
:
647.5
y
:
153
pressure
:
0.5
4
:
{
time
:
1727078864731
x
:
667.5
y
:
151
pressure
:
0
file
:
{
filename
:
blob
originalname
:
blob
fileuuid
:
c0ea5939-869c-53f2-9ee2-fd204b188c85
contentType
:
image/png

It can be seen that the signature path is stored in the account_owner_signature.data field as a list of points. A file is also stored in the account_owner_signature.file field.

This can be substituted with eg. ~~stubpost.data.account_owner_signature where required.

Parameters

See fields for common field parameters like validation and conditional rendering.