Finish URL
When a user completes the embedded Screen Flow, you can send them to a thank-you page or next step.
Parameter name
Section titled “Parameter name”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/thanksLegacy integrations used endurl (lowercase). FlowIframeEmbed only recognizes endUrl.
Behavior
Section titled “Behavior”- Flow runs inside iframe on your Salesforce Site.
- When Lightning reports
FINISHED, Visualforce setswindow.parent.location.hreftoendUrl. - 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.
JavaScript widget
Section titled “JavaScript widget”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.