RequestTextFieldInfoArrayCallback Function
Description
Callback function for requests retrieving an array of TextFieldInfo objects.
Syntax
function(<TextFieldInfo[]> textFields)Examples
The following example demonstrates RequestTextFieldInfoArrayCallback in a practical document-editing workflow. Callback function for requests retrieving an array of TextFieldInfo objects.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestTextFieldInfoArrayCallback(textFields) {
console.log("text fields:", textFields);
}
TXTextControl.textParts.getMainText(function(formattedText) {
formattedText.getTextFieldsByType(TXTextControl.TextFieldType.ApplicationField, requestTextFieldInfoArrayCallback, onTxError);
}, onTxError);