on 2020 Sep 03 7:19 AM
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'));}
}
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.