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

  1. Prefix the custom property name in your template with _kameleon_ (for example, _kameleon_Title).

  2. 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_Title becomes Title), and matching DOCPROPERTY fields are updated to DOCPROPERTY "Title".

  • All other unprefixed custom properties are removed without modifying their DOCPROPERTY references.

See also