Preserve custom properties
Preserve specific Word custom document properties (and their DOCPROPERTY field references) during Kameleon document generation by prefixing their names with _kameleon_.
Why Kameleon removes custom properties by default
Privacy: Custom properties can contain hidden or sensitive metadata.
Compatibility: Legacy or third-party properties can conflict with new template builds or cause unexpected field behavior.
Security & compliance: Removes hidden metadata that might violate retention policies.
How to preserve a custom property
Prefix the custom property name in your template with
_kameleon_(for example,_kameleon_Title).Reference it in Word using
DOCPROPERTY "_kameleon_Title".
Result
When a user creates a new document from the template:
Properties prefixed with
_kameleon_are preserved and renamed by stripping the prefix (for example,_kameleon_TitlebecomesTitle), and matchingDOCPROPERTYfields are updated toDOCPROPERTY "Title".All other unprefixed custom properties are removed without modifying their
DOCPROPERTYreferences.