Tools / Lightning Flow iFrame
Community tooling wordpress.org

Lightning Flow iFrame

Bring your Salesforce Screen Flows onto your website.

A request form or a registration can live on your site and grow as the person moves from step to step. The page gets taller with the form. They aren’t stuck in a box that cuts off the next question.

Try the demo WordPress Other websites

Try
Use the demo on this page.
Install
Production and sandbox, or the WordPress plugin. The Flow has to be allowed for guests on a Salesforce Site.
Get help
Setup notes are in the support docs. For help wiring it into your site, write Jason.
Live demo

Try the demo

Pass Flow input variables through the URL.

/projects/lightning-flow-iframe?site=East%20Side#demo

Change the Flow in the URL.

/projects/lightning-flow-iframe?flow=Website_Contact_Form#demo

Completing the flow redirects to iframe-finish-demo.

Features

Features

Feature How it works
Set Flow Name The Flow API name is flow. Set it on the page URL, in the WordPress shortcode or settings, or in the JavaScript config.
Flow Input Variables List the input names in inputVars. Values come from the page URL, WordPress extraqs, or JavaScript params. Only listed names are passed.
Dynamic height The frame grows and shrinks with each screen. The embed reads frameHeight from the flow.
Scroll to top on screen change Next and Previous scroll the page so the top of the flow is in view. scrollOffset keeps a fixed header clear.
Styling keys bg, padding, primary, primaryHover, and secondary set the page color, the space around the flow, and the button colors.
End URL endUrl is the page the visitor lands on when the flow finishes.
Styling

Match the public flow to your brand

A public flow can be styled to match the site it lives on. From the embed you can set bg and padding for the color behind the flow and the space around it, and primary, primaryHover, and secondary for the Next, Finish, and Previous buttons. The demo above sets Next to the same rust as this page.

Further changes, such as type, field borders, and error color, are made in the style block on the FlowIframeEmbed Visualforce page.

Install

Install is two parts

The Salesforce package, then the website that shows the flow.

The package

Install FlowIframeEmbed in a production org or a sandbox.

The website

WordPress uses the plugin. Any other site uses the JavaScript embed.

Wire it up

Connect the flow to the public site, then pass values in and send people somewhere when they finish.

Get Notified: Let me know about product and tool updates.