cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to get the value of the new Signature Page?

0 Kudos
286

Hi, may I know how to get the value of Signature Pad? Below is the code for my Initial page and the JavaScript rule.

This is the error that's showing on my terminal: "mdk.trace.targetpath: Error: Cannot find a page to use to evaluate control segment."

SignaturePage.page (part of the code for the signature pad form)

"Controls": [
    {
        "Caption": "Add Signature",
        "IsVisible": true,
        "OnValueChange": "/DOEDocumentMonitoring/Rules/SaveSignatureCapture.rule.js",
        "ShowTimestampInImage": false,
        "ShowUnderline": true,
        "ShowXMark": true,
        "WatermarkText": "",
        "WatermarkTextMaxLines": 1,
        "_Name": "SignaturePadLatest",
        "_Type": "Control.Type.FormCell.SignatureCapture"
    }
],

SaveSignatureCapture.js

var clientAPI;

export default function SaveSignatureCapture(clientAPI) {

  console.log("TARGET PATH", clientAPI.evaluateTargetPath('#Control:SignaturePadLatest/#Value'));}


}

Accepted Solutions (0)

Answers (0)