Newer Version Available
Render Lightning Runtime for Flows in a Visualforce Page
By default, when you embed a flow in a Visualforce page, the flow renders in Classic
runtime. Like its name suggests, Classic runtime looks and feels like regular Visualforce pages
and the Salesforce Classic desktop experience. If you want your flow to render in Lightning
runtime in your Visualforce page, embed the flow Aura component to your Visualforce page.
- Create a Lightning app that declares a dependency on the lightning:flow component.
- Add the Lightning Components for Visualforce JavaScript library to your Visualforce page using the <apex:includeLightning/> component.
- In the Visualforce page, reference the dependency app.
- Write a JavaScript function that creates the component on the page using $Lightning.createComponent().