Skip to content

Helper Functions

isEmpty

Allows you to check if there is at least one stroke.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// file: hooks/TABLENAME-dv.js
var options = {
    onReady: function(pad) {
        if (!pad.isEmpty()) {
            // no signature
        } else {
            // there is a signature
        }
    }
};

var pad = new AppGiniHelperDVSignature.Pad("FIELDNAME", options);