All widgets

Document template

One document per row (a quote, a certificate, a letter) from an HTML template with the columns as placeholders; or one for all rows. Print it, or save it as PDF.

DocumentsFull document accessv0.2.4BetaMIT

Add it to a document

In Grist, add a widget, choose Custom, then Enter Custom URL and paste:

https://gristwidgets.com/widgets/document-template/v0/

It takes every v0.x release, fixes and new features; a breaking change comes as a new major version, at a URL of its own. The same widget is also served at https://arthurblanchon.github.io/grist-widget-sdk/widgets/document-template/v0/.

What it does

People who produce documents from their data (a quote, a certificate, a letter, a delivery note) write an HTML template once, with the table's columns as placeholders, and get the selected row's document, ready to print or save as PDF. In list mode, a repeated section makes one document of all the section's rows: a report, a price list.

Grist has no printing beyond its own views; its official gallery has fixed invoice and label widgets. This one takes any layout.

Columns

None to map: the template names the table's columns, {{ColumnId}}. Grist sends the widget every column of the selected row.

Access

full: the template is saved in the widget's options, which only a widget with full access can write. It writes nothing to the document.

Changes

0.2.4 · 2026-11-28

  • Built with the latest version of grist-widget-sdk: nothing changes on screen.

0.2.3 · 2026-11-26

  • A list whose first choice is "L" (a size, say) keeps it in the document: L, XL was filled in as XL.

0.2.2 · 2026-11-21

  • No more linking alert ("Widget linking") in a section that follows no other, or that no section follows: the widget works either way.

0.2.1 · 2026-11-21

  • The widget loads again: Grist started serving its plugin script as a development build that this widget's security policy refuses, which left every copy on "The Grist plugin did not load". The widget now ships its own copy of Grist's plugin script, a fixed version without that problem, and runs no script from anywhere else.

0.2.0 · 2026-11-16

  • "Report a problem": when a change fails to save, or if the widget ever stops working, a link opens this widget's bug form, filled in with its name and version. Nothing is sent from your document: you write what you choose.
  • If the widget stops working, it says so, with a button to reload it, instead of showing an empty panel.
Every version