Javascript: TXTextControl.DateField.preserveFormatting Property
Description
Specifies whether the field's formatting should be preserved.
Syntax
<boolean> TXTextControl.DateField.preserveFormattingExamples
The following example demonstrates TXTextControl.DateField.preserveFormatting in a practical document-editing workflow. It specifies whether the field's formatting should be preserved.
function inspectPreserveFormatting(dateField) {
const preserveFormatting = dateField.preserveFormatting;
console.log("preserve formatting:", preserveFormatting);
}