Skip to content

$draw

This keyword will allow the user to draw on it using the mouse.

Install

To use this keyword, it must be first installed on the server as:

cob-cli customize draw

Dependencies

For this to work as intended, the following customizations must also be installed:

cob-cli customize mobile
cob-cli customize image

Usage

$file $draw([width:number,height:number,options:boolean])

Options:

ParameterDescription
widththe width of the drawing board. Defaults to 400px.
heightthe height of the drawing board. Defaults to 400px.
optionsEnables download and upload features if options:true. Defaults to true.

WARNING

This customization requires the $field keyword since the draw is saved as an attachment.

Examples

Using as signature field

$file $draw

definition-draw

draw-instance_1