+ Start a Discussion

force.com site not working in lightning runtime

I created a flow and added it to a visualforce page so i can use it on a force.com site 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".

I tried creating the following aura component  and added it to my visualforce page, but now I get a blank screen when i click on my site link even in view as a admin. Any help with this would be greatly appreciated.

Aura Component:
<aura:application access="global" extends="ltng:outApp" >
    <aura:dependency resource="lightning:flow"/>

Visualforce Page:
<apex:page showHeader="false" sidebar="false" lightningStylesheets="true" standardStylesheets="false" standardController="SP_Application__c" >
         <apex:includeLightning />
      <body class="slds-scope">
         <div id="flowContainer" />
            $Lightning.use("c:lightningOutApp", function() {
               // Create the flow component and set the onstatuschange attribute
               $Lightning.createComponent("lightning:flow", {"onstatuschange":statusChange},
                  function (component) {
                     // Start an interview in the flowContainer div, and 
                     // initializes the input variables.
                     component.startFlow("Service_Provider_Application", inputVariables);


Debug Log
20:21:41.0 (316753)|USER_INFO|[EXTERNAL]|00561000001x4p9|customersurvey@binc-developer-edition.na34.force.com|(GMT+00:00) Greenwich Mean Time (GMT)|GMTZ
20:21:41.0 (429901)|EXECUTION_STARTED
20:21:41.0 (442796)|CODE_UNIT_STARTED|[EXTERNAL]|0664N000003d0fC|VF: /apex/vf_sp_application
20:21:41.7 (7757798)|CUMULATIVE_LIMIT_USAGE
20:21:41.7 (7757798)|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 0 out of 100
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

20:21:41.7 (7757798)|CUMULATIVE_LIMIT_USAGE_END

20:21:41.0 (7866868)|CODE_UNIT_FINISHED|VF: /apex/vf_sp_application
20:21:41.0 (8832544)|EXECUTION_FINISHED

Sharath JalluSharath Jallu
Got any solution for this ?