+ Start a Discussion

Running Javascript in console

Hi All,

I created a JS that changes the "Setup" button for specific users.

Iused a sidebar component, and I works great except when the user enters the console, there is no sidebar, and the button is shown because the JS is not loaded.

Can anyone suggest how to run JS in salesforce console?

Thank you,

Sorry I guess you wont be able to do this!
You just came across one of the limitation of this HACK!

Salesforce doesnt have a universal place holder from where you can run JS, the only place that you can do is from sidebar and the limitation is in front of you.



You can not run Javascript in salesforce console.


If you want to run javascript in salesforce, then you need to include javascript in visualforce page.