salesforce custom button onclick javascript example 26 Salesforce Custom Button Onclick Javascript Example June 1, 2021. Akhil Kulkarni. When working in LWC, there will be a scenario where you may have to click a button based on s… Written By Trenton V. Williamson Friday, August 16, 2019 Add Comment Edit