Skip to content

Finish URL

When a user completes the embedded Screen Flow, you can send them to a thank-you page or next step.

Use endUrl (camelCase) on the FlowIframeEmbed iframe URL:

https://your-site.force.com/site-prefix/apex/three_levers__FlowIframeEmbed?flow=Check_In_Dispatch&endUrl=https://yoursite.com/thanks

Legacy integrations used endurl (lowercase). FlowIframeEmbed only recognizes endUrl.

  1. Flow runs inside iframe on your Salesforce Site.
  2. When Lightning reports FINISHED, Visualforce sets window.parent.location.href to endUrl.
  3. Entire parent tab/window navigates (not just iframe).

If endUrl is omitted, the parent page stays on the current URL. The Visualforce page keeps posting frameHeight, and it releases the flow runtime panel that was pinned to the iframe viewport, so the screen drawn after finish is not clipped. Package version 1.2.2 and later.

window.tlFlowEmbed = {
embedUrl: 'https://your-site.force.com/site-prefix/apex/three_levers__FlowIframeEmbed',
flow: 'Check_In_Dispatch',
endUrl: 'https://yoursite.com/thanks'
};

The widget adds endUrl to iframe query string automatically.

  • Use absolute https:// URL.
  • Confirm flow actually reaches FINISHED (not paused/faulted).
  • For demos, see /iframe-finish-demo.