Javascript: FormattedText.applicationFields Property
Description
Gets a collection of all Microsoft Word fields that have been created or imported from a Microsoft Word or RTF document.
Syntax
<ApplicationFieldCollection> FormattedText.applicationFieldsExamples
The following example demonstrates FormattedText.applicationFields in a practical document-editing workflow. It gets a collection of all Microsoft Word fields that have been created or imported from a Microsoft Word or RTF document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(formattedText) {
formattedText.applicationFields.getCount(function(count) {
console.log("application fields count:", count);
}, onTxError);
}, onTxError);Limitations
Read Only.