Skip to main content

organisms

Contact form

The browser-write contact form on a drafting-sheet surface, with email and message fields, a honeypot, and a status line.

Specimens

Contact form The Sanity config params are left out, so this specimen doesn't submit. The real page passes the project, dataset, API version, and write token from the environment.

Doc 03 / Transmission Form

Contact

  • DOC 03A
  • Form 3.14
  • Sheet 1 of 1

Reach out. I'd like to hear from you.

No spam. Just me.

revision
09.04.26
{{ ContactForm.render({
  sectionId: "specimen-contact",
  docNo: "03",
  docTitle: "Contact",
  sourcePage: "/docs/design/"
}) }}

Params

ParamTypeDescription
classesstring, variant map, or arrayApplied to the <form> through classes, after the sheet baseline.
submitLabelstringSubmit button label. Defaults to “Transmit message”.
sanityProjectIdstringWritten to data-sanity-project.
sanityDatasetstringWritten to data-sanity-dataset.
sanityApiVersionstringWritten to data-sanity-api-version.
sanityWriteTokenstringWritten to data-sanity-write-token. The token is in the page markup.
sourcePagestringValue of the hidden sourcePage input.
sectionIdstringId prefix for the form’s elements. Defaults to contact.
docNostringTwo-digit parent document number, shown as “Doc {docNo} / Transmission Form” and “DOC {docNo}A”. Defaults to 00.
docTitlestringForm heading. Defaults to Contact.

views/templates/contact/contact.njk passes the sanity* params from the env global data. Russ confirmed on 2026-11-06 that the token is write-only and that the exposure is acceptable.

Notes

The macro loads ContactForm.js itself. Never bind env values into a specimen, because the write token lands in the page markup.