TX Text Control .NET Server

Javascript: FormattedText.formFields Property

Property|Introduced in 30.0

Description

Gets a collection of all form fields in the text part.

Syntax

<FormFieldCollection> FormattedText.formFields

Examples

The following example demonstrates FormattedText.formFields in a practical document-editing workflow. It gets a collection of all form fields in the text part.

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

TXTextControl.textParts.getMainText(function(formattedText) {
    formattedText.formFields.getCount(function(count) {
        console.log("form fields count:", count);
    }, onTxError);
}, onTxError);