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
RoyGiladRoyGilad 

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,

Avidev9Avidev9
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.
SachinSankadSachinSankad

Hi,

 

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.

 

Thanks,

Sachin.