You need to sign in to do that
Don't have an account?
Jonathan 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}"); }
{!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}"); }
Can you share screenshot of same?
Thanks,