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
jahnvi shukla 10jahnvi shukla 10 

How can I show my visualforce page to Case Object?

Hello,
I have created on Lighting component to show it on Case object I have created one Visaul Force Page:

<apex:page standardController="Case">
 <apex:includeLightning />
 <div id="lightning" />
 <script>
$Lightning.use("hbdcall:LightningOutContainerApp", function() {
 $Lightning.createComponent("hbdcall:CallPage",
         { label : "Press Me!" },
              "lightning",
              function(cmp) {
                console.log("button was created");
                // do some stuff
              });
 });
</script>
</apex:page>


 Then from Setup > I added this page in "View",
also created one section in PageLayout and added that page in that section.

Still that component is not visible in the Classic view.
 
sachinarorasfsachinarorasf
Hi jahnvi,

It is not possible in Salesforce Classic and if we talk about the salesforce lightning then the visualfocre page itself shown in the separate section for any record's detail page which is called 'DETAILS'.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Sachin Arora
www.sachinsf.com