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
Pere Martí RuizPere Martí Ruiz 

Are Custom Buttons with OnClickJavascript option going to disappear?

Hello everybody,

I read somewhere that the Custom Buttons option to be able to execute javascript is going to be removed (for security concerns) in the future versions of Salesforce. 
This would be in any custom button page the options where you select:
Behaviour: Execute Javascript
Content Source OnClick Javascript

However, I can't seem to find this information anywhere and I was wondering if I was mistaken.
Can somebody from salesforce tell me if this change is on the roadmap, and when is it planned to be delivered? As this would require a some of changes to our current application.

Thanks!
 
Andy BoettcherAndy Boettcher
There have been areas of Salesforce where javascript/html have been removed, such as Home Page Components or the old "Sidebar hacks".  You are correct that they have been removed for security concerns, but I have not heard of the custom buttons being disabled anytime in the near future.