DS Server

Javascript: TextField.getID Method

Method|Introduced in 28.0

Description

Gets an identifier for a text field.

Syntax

<void> TextField.getID(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

The callback function that receives the requested value.

errorCallback

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

Examples

The following example demonstrates TextField.getID in a practical document-editing workflow. It gets an identifier for a text field.

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

function inspectID(textField) {
    textField.getID(
        function(result) {
            console.log("get id result:", result);
        },
        onTxError
    );
}