Javascript: FormattedText.formFields Property
Description
Gets a collection of all form fields in the text part.
Syntax
<FormFieldCollection> FormattedText.formFieldsExamples
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);