FormFieldMergeType Property
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Specifies in which manner form fields are treated during the merge process. Form fields can either be ignored, preselected or replaced with a value from the data source. The default value is FormFieldMergeType.None which means that form fields are completely unaffected by the merge process.
Syntax
public FormFieldMergeType FormFieldMergeType { get; set; }Public Property FormFieldMergeType As FormFieldMergeTypeMembers
| Value | Description |
|---|---|
| None | Form fields are not merged at all. |
| Preselect | Form field content is preselected when possible. Form fields not associated with a data table column are unaffected. |
| Replace | Form fields are replaced with database content. Empty form fields are removed according to property MailMerge.RemoveEmptyFields. |
Examples
The following example uses MailMerge.FormFieldMergeType to configure form field merge type as part of the mail merge workflow. The configured value is checked before the workflow continues.
mailMerge.FormFieldMergeType = TXTextControl.DocumentServer.FormFieldMergeType.Preselect;
Console.WriteLine($"Form Field Merge Type used by Mail Merge: {mailMerge.FormFieldMergeType}");mailMerge.FormFieldMergeType = TXTextControl.DocumentServer.FormFieldMergeType.Preselect
Console.WriteLine($"Form Field Merge Type used by Mail Merge: {mailMerge.FormFieldMergeType}")