Skip to main content

Managing Templates

Templates in AnyDB allow you to standardize data document structures, save time, and maintain consistency across your team's workflows. Once created, templates simplify creating consistent data documents and improve efficiency across your team.


Creating a New Data Document Template

To create a new template:

  1. Create a new Data Document.
  2. Configure the layout, fields, and structure as needed.
  3. Once finalized, click Save as Template from the top-right menu.

New Template Creation

  1. In the template creation dialog:

New Template Creation

Enter the following:

  • A unique template name
  • An icon to visually identify the template
  • A description explaining its purpose
tip

Note: Templates are scoped to the current database only. They will not automatically appear in other databases unless exported and imported.

tip

Note: Template names must be unique within the database. If the name provided already exists, it will not be allowed.

tip

Note: Only database owners can create and update templates.


Updating an Existing Template

To modify an existing or pre-built template:

  1. Create a new Data Document from the template you want to update.

  2. Make any changes to the layout, fields, or formulas.

  3. A visual alert will appear near the document title indicating the template has been modified.

    New Template Change Alert

  4. Click the alert to open the Template Modified dialog.

Template Modified Dialog

You can choose:

  • Convert all documents
    Converts all existing documents created from the original template to use the new layout and structure.

  • Save this as a new template
    Creates a new template based on the updated design without affecting existing documents.

  • Revert all changes
    Discards the modifications and restores the original template layout.

  • Ignore warning
    Removes the modification alert from the current data document without applying any changes.

caution

Important:
When selecting Convert all documents, all existing data documents using the original template will be updated to the new structure. This may alter or remove existing data.

The conversion runs in the background and may take time depending on the number of documents. You will receive a notification once the process completes. Review carefully before proceeding.


Exporting Templates

Templates can be exported for backup, sharing, or transferring to other databases or teams.

To export:

  1. Open any data document created from the desired template.
  2. Click Export and select JSON.
  3. In the export dialog, choose Template.

A JSON file containing the template structure will be downloaded.


Importing Templates

To import a template into another database:

  1. Navigate to the target database.
  2. Open Manage Database.
  3. Go to Templates.
  4. Click Import Template.

Template Import

  1. Select the previously exported JSON.

Once imported, the template will be available to all team members in that database.

tip

Importing a template transfers the layout, field types, and styles only. No data is included.


Best Practices

  • Version Templates
    Save a new version when making significant changes rather than overwriting existing templates.

  • Use Clear Naming Conventions
    For example: Customer Record v1.0, Invoice Template Q2 2025.

  • Test Before Deployment
    Apply templates to sample data documents to ensure they work as expected before broad adoption.

  • Document Template Purpose
    Provide clear descriptions to help users understand when and how to use each template.