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
Shubham Patil 74Shubham Patil 74 

Issue on Save and cancel button, want to coommunicate lwc to vf


Hi,

I have created an LWC component to create a new Quote. Created an Aura Application and called a component from the Visualforce page. I have created a List button and called the visualforce page.
The issue is when clicking on the list button lightning record edit form is showing but the Save & Cancel buttons are not working. If I use lwc alone it is working but within the VF page, it is not working.
Any idea what I missed here?
Syed Insha Jawaid 2Syed Insha Jawaid 2
HI Shubham

Any error recorded on click of the button? Also please share your code snippet to trace out the problem.
Shubham Patil 74Shubham Patil 74
Hii Syed

This is the VF code where  I called lwc component

<apex:page standardController="Account" recordSetVar="Accounts" extensions="LEX_ChangeOwnerContainer" lightningStylesheets="true"
    standardstylesheets="false" showHeader="false">
    <apex:includeLightning />
      <div id="lightning"/>
    <script>
        var selRecords = '{!setAccIds}';
        console.log(selRecords);
        $Lightning.use("c:LEX_ChangeOwnerApplication", function () {
            $Lightning.createComponent("c:changeOwnerLWC",
                {
                    accSelIds: selRecords == '' ? [] : selRecords.split(',')
                },
                "lightning",
                function (cmp) {
                 
                });
        });
   
    </script>
   
            <div id="lightning" />
       
</apex:page>

let me know, if you need anything