How form previews work and version control

What preview does

The preview app renders a previously submitted response in read only form. It is the way a reviewer sees a submission exactly as the submitter saw it: the same fields, the same layout, filled with the submitted values, using the exact version of the form definition that was in force at submission time.

Opening a preview

The preview page takes a single URL parameter, id, which is a FormResponse__c record id:

https://your-site.example.com/apex/b3f__PreviewForm?id=<responseId>

Every response record has a Preview Submission link field that opens this page for that response in a new tab, so reviewers usually reach it from the response record rather than building the URL.

Preview is for internal reviewers signed in to Salesforce. Do not publish the preview page on a public site.

Version control by Data Version id

Preview version control is driven by the response's stored Data Version id.

  1. When a form is submitted, the version of the definition that was rendered is stamped onto the response's Data Version field.
  2. When the preview loads, it reads that Data Version id from the response.
  3. It loads that exact definition version and downloads its content.
  4. It fills the form with the response's stored answers and renders it read only.

Because the definition version is pinned to the response, editing the form afterwards does not change what a preview shows. A response answered against an old version always previews against that old version.

How preview differs from the live form

Live form Preview
URL parameter form id, plus optional record, version, key response id
Version rendered latest, unless pinned by the link the response's stamped Data Version
Mode editable, submits records read only, no submission
Data shown prefill or draft the submitted answers
AI and captcha active not loaded

Relationship to builder versioning

Preview and the builder use the same underlying version list. The builder's Version History lists every saved version of the definition; a response's Data Version id points at one of those versions. See Version control in the builder and in the form link.