protected static OutputField fieldFate = OutputField.REMOVED; /** * What to do with the MERGEFIELD in the output docx. * * Default is REMOVED. * * KEEP_MERGEFIELD will allow you to perform * another merge on the output document. * * The AS_FORMTEXT options convert the MERGEFIELD to a FORMTEXT field. * This is convenient if you want users to * be able to edit the field, where editing is restricted * to forms. * * @param fieldFate */ public static void setMERGEFIELDInOutput(OutputField fieldFate) { MailMerger.fieldFate = fieldFate; } public enum OutputField { DEFAULT, REMOVED, KEEP_MERGEFIELD, AS_FORMTEXT_REGULAR; // AS_FORMTEXT_TYPED, // AS_FORMTEXT_TYPED_FORMATTED; }