Javascript: TXTextControl.IncludeTextField.fileName Property
Description
Specifies the file name of the document that should be inserted. In the MailMerge component, the search path for the documents can be set using the DocumentServer.MailMerge.SearchPath property.
Syntax
<string> TXTextControl.IncludeTextField.fileNameExamples
The following example demonstrates TXTextControl.IncludeTextField.fileName in a practical document-editing workflow. It specifies the file name of the document that should be inserted. In the MailMerge component, the search path for the documents can be set using the DocumentServer.MailMerge.SearchPath property.
function inspectFileName(includeTextField) {
const fileName = includeTextField.fileName;
console.log("file name:", fileName);
}