Templates submission app and URL parameters

What this app is

The submission app is what a recipient sees when they open a published Template link. It renders the document from live Salesforce data, lets the recipient fill in input fields, sign, and download or reject. It runs in two modes depending on the link: a single-user flow (one recipient, no defined signer records) and a multi-user / collaboration flow (ordered signers, used by the redlining and multi-signer workflows).

The app is hosted on the Document page. The document to load and the mode are resolved from the link.

URL parameters

Parameter Purpose Required Values
templateId The Template to render. Its definition file is loaded and rendered. Accepts either the Template's stable identifier or its record Id. Yes, in single-user mode Identifier or record Id
recordId The merge context record. All merge fields in the template resolve against this record. Yes, in single-user mode Record Id of the template's context object
invitation Applies a saved Template Invitation's personal message and active CC Contacts when creating the Document Trace. Must be an active token for the same Template and merge record. Preserve it in links created by Template Sender. No invitation token
versionId Pins a specific version of the template definition. If omitted, the latest published version is used. No Version Id
isPreview Preview / dry-run mode. The full interactive UI renders but nothing is written: no tracking record, no PDF, and a persistent "This is a preview only" banner shows. Remove it to produce the real document. No any truthy value
collaborator Switches the app into multi-user collaboration mode. Identifies the collaborator's personal link. The signer, the request, the template and the merge record are resolved server side. Yes, for multi-signer / redline flow the collaborator's link value, issued by 3B

Notes:

Single-user workflow

  1. The link opens with templateId and recordId.
  2. A Document Trace record is created capturing the template, the merge record, and the recipient's browser, OS, device fingerprint, IP, and language for audit.
  3. The template body is rendered and all merge fields resolve against recordId.
  4. The recipient works through the submission form: they fill each input field, then provide identity (name) and signature if the template requires signing.
  5. On completion the finished document is saved as a file on the trace, a PDF is requested from the rendering service, and a success screen shows.
  6. The recipient can download the PDF (or the browser falls back to print if the PDF is not yet ready).

Multi-user / collaboration workflow

  1. The link opens with a collaborator value.
  2. The current signer, all sibling signers (ordered), the request, and the template are resolved server side.
  3. If this signer has already signed, they see the completed document and a download button instead of the form.
  4. Otherwise the shared document body is loaded (or generated from the template the first time), and the signer completes only the fields assigned to their order.
  5. The signing page checks the collaborator's readiness. Distribute signing links in the intended sequence.
  6. Each signer's completion updates the shared document and their signer record. The final signer's completion produces the finished document and PDF.

Field assignment

Input fields carry a submitter assignment. In collaboration mode a field is editable only by the signer whose order matches the field's assignment. Every other signer sees it read-only. This is how a single document collects input from multiple parties in sequence.

Template settings that change this app

These are set on the template and change what the submission app renders. See Template settings reference for the full list.

Setting Effect on submission
Use signature Switches between a sign-and-download flow and a download-only flow, and whether a signature identity field is added.
Do Not Use Submission Form Hides the step-by-step field wizard. Only identity/signature fields show, and the document's own embedded inputs become the whole form.
Hide Reject Button Removes the Reject option from the form.
Allow sign without identity Drops the name identity fields and keeps only the signature.
View only mode Hides the entire submission form. The document is display only.
Stop field jumping / Stop field scroll into view Disable the auto-highlight and auto-scroll behaviours of the active field.
Disable confetti Suppresses the completion animation.

All button and message text is label-driven, so wording is fully configurable per template.

Rejection

If the reject option is available, the recipient can decline. This stamps a rejected timestamp on the tracking record and shows a rejection screen. No document is produced.

Embedding in a Lightning page

On completion the app posts a message to its parent window identifying itself and passing the tracking record. A Lightning page that embeds the link can listen for this to react (for example, refresh the record or advance a process).

Invitations, CCs, headers and footers

A single-signer link created by Template Sender saves a Template Invitation. Each visit creates its own Document Trace and copies the invitation's current personal message and active CC Contacts alongside Template defaults. The message is for email automation and does not appear in the signing page or PDF. See Publishing and workflows.

Template headers and footers appear read-only above and below the document. Their merge fields use the same record as the body. When Different first page is enabled, the screen shows the first-page variants; the generated PDF repeats the appropriate content on every page. See Headers and footers.