DS Server

Javascript: SignatureField.setSignerData Method

Method|Introduced in 31.0

Description

Sets the signer data of the signature field.

Syntax

<void> SignatureField.setSignerData(<SignerData> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
value

The property value.

callback

Optional. Is called when the operation completed.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates SignatureField.setSignerData in a practical document-editing workflow. It sets the signer data of the signature field.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureSignerData(signatureField, value) {
    signatureField.setSignerData(
        value,
        function() {
            console.log("set signer data completed.");
        },
        onTxError
    );
}