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
TriptisfdcTriptisfdc 

How can I add lightning component in Custom button on Account record detail Page

I am using vf page and call lightning component from VF Page but not able to see vf page while creating custom button on Account Detail Page..
Raj VakatiRaj Vakati
Make sure your vf page is using the standard controller


Some think like this
 
<apex:page standardController="Account">
    <apex:includeLightning />

    <div id="lightning" />

    <script>
        $Lightning.use("c:lcvfTest", function() {
          $Lightning.createComponent("ui:button",
          { label : "Press Me!" },
          "lightning",
          function(cmp) {
            // do some stuff
          });
        });
    </script>
</apex:page>