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
Jonathan Wolff 7Jonathan Wolff 7 

OnClick Javascript - Detail Page Button does not show u in layout

Hello, I created a Detail page button to trigger an apex action. I created Detail Page Button -> Execute Javascript -> OnClick Javascript and the I added my code . But the button does not show up in my account template even though I added it into my layout.
 
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")} if({!Account.Name}!=Null) { XLSXGenerator.generate(new List<String>{}); alert("This is {!Account.Name}"); }
VinayVinay (Salesforce Developers) 
HI Jonathan,

Can you share screenshot of same?

Thanks,