+ 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>