Browse documentation

Permit Conditions Export Template (.xlsx) Reference

The Permit Conditions Export template is an Excel (.xlsx) workbook. It uses a lighter-weight placeholder syntax than the Word template, tailored to spreadsheet rows and columns.

Scalar placeholders

Put a placeholder as the entire contents of a cell (don't mix placeholder text with other text in the same cell): {{permit.name}}. When the document is generated, the whole cell value is replaced with the resolved value. Numeric values are written as real numbers (not text), so formulas and formatting elsewhere in the sheet keep working.

Placeholder Description
{{permit.name}} Permit name
{{permit.permitNumber}} Permit number
{{permit.projectName}} Project name
{{permit.status}} Permit status (pending, approved, expired, archived)
{{permit.issuedDate}} Issued date
{{permit.expirationDate}} Expiration date
{{permit.description}} Permit description

Repeating rows (conditions table)

Exactly one repeating row region per sheet is supported. It's marked by two special rows:

  • A row containing {{#conditions}} in any cell — marks the start of the region.
  • The very next row is the template row: it contains scalar placeholders for a single condition (see field table below).
  • The row after that must contain {{/conditions}} — marks the end of the region.

At generation time, Axial:

  1. Clones the template row once for every permit condition (copying its styles/formatting, including word-wrap).
  2. Fills each cloned row's placeholders using that condition's data.
  3. Applies status color-coding to the {{status}} cell of each row (see below).
  4. Removes the two marker rows, leaving only the filled-in data rows in their place.

Axial's default template layout:

Row A B C D E F G
11 Condition # Title Description Milestone Status Subgroup Notes
12 {{#conditions}}
13 {{condition_number}} {{title}} {{description}} {{milestone}} {{status}} {{subgroup}} {{notes}}
14 {{/conditions}}

The header row vs. the template row: how column mapping works

This is the key thing to understand if you want to rearrange your own template: the header row (row 11 above) is cosmetic only. Axial does not read header text to decide where data goes. What actually determines where each field is written is the placeholder tag's column position in the template row (row 13 above).

That means:

  • You can freely rename header labels (e.g. change "Condition #" to "Ref No.") — this has no effect on data mapping.
  • You can freely reorder columns, add your own extra columns (e.g. a blank "Client Sign-off" column), or delete columns you don't need — as long as, whenever you move a column, you move both its header cell and its {{tag}} placeholder cell in the template row together, in the same column.
  • If you delete a placeholder column entirely, that field is simply omitted from the export — no error.

In short: the header row is for humans, the template row's placeholders are for Axial. Keep each header label directly above its matching placeholder and you can restyle/reorder the table however you like.

Fields available inside the repeating row

Unlike the scalar placeholders above (which use permit. dot-paths), fields inside the repeating row are top-level field names on each condition — no conditions. prefix:

Placeholder Description
{{condition_number}} Condition number/label
{{title}} Condition title
{{description}} Condition description (HTML formatting is converted to plain text with line breaks/bullets preserved)
{{milestone}} Milestone (certification, prior_to_works, statement_of_compliance)
{{status}} Condition status, as the human-readable label shown in the app: Not Started, In Progress, Completed, or Not Applicable
{{subgroup}} Condition subgroup label, if set
{{notes}} Condition notes, if set (HTML formatting is converted to plain text)

Branding, styling & status coloring

Axial's default template ships with Axial branding (a dark banner with the Axial wordmark and report title, brand-blue table header) and word-wrap enabled on every cell in the template row, so long descriptions/notes wrap across multiple lines instead of overflowing or getting clipped. Row height is left on Excel's automatic sizing so wrapped rows expand to fit their content when opened.

When you upload your own template, you can restyle any of this freely (colors, fonts, your own logo, column widths, wrap settings) — none of it is required for the export to function; only the {{...}} placeholders themselves are load-bearing.

The Status column is automatically color-coded by Axial after your data is filled in (green for Completed, amber for In Progress, gray for Not Started/Not Applicable) — this coloring is applied to whichever cell currently holds the {{status}} placeholder, so it follows the column if you move it, and it overrides whatever fill color you set on that cell in your template.

Rules & gotchas

  • Only one repeating region is supported per sheet. Multiple sheets can each have their own region, but a single sheet can't have two separate {{#conditions}}...{{/conditions}} blocks.
  • The template row must be exactly the single row directly between the {{#conditions}} row and the {{/conditions}} row — don't add extra rows in between.
  • A cell that mixes a placeholder with other text (e.g. Status: {{status}}) will not be replaced — placeholders must be the entire cell value.
  • If a permit has zero conditions, the marker rows are removed and no data rows are added.
  • Formatting (fonts, fills, borders, alignment, word-wrap, column widths) on the template row is preserved on every generated row, except the Status cell's fill/font color, which Axial overrides per-row based on the condition's status.

See Document Templates overview for how to upload a custom version of this template.