function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BobPBobP 

lightning runtime not working on force.com site

I created a flow and added it to a visualforce page so i can use it on a force.com site to use as a web form. Some of my input fields are lightning components, so when i go to the site the fields that have the lightning components gives me the dredged "We can’t display component 'flowruntime:phone', because it isn't supported in Classic runtime. Ask your Salesforce admin to distribute this flow in Lightning runtime instead".
Is there a way to activate lightning runtime on my force.com site or visualforce page so these fields work on my site?   
Khan AnasKhan Anas (Salesforce Developers) 
Hi Bob,

Greetings to you!

According to Salesforce doc:

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().

Please refer to the below links which might help you further with the above requirement.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_flows_lightningruntime.htm

https://salesforce.stackexchange.com/questions/201278/flow-in-visualforce-page-not-displaying-in-lightninglooks-like-classic

https://developer.salesforce.com/forums/?id=9060G000000BhIoQAK

https://help.salesforce.com/articleView?id=flow_distribute_runtime.htm&type=5

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas