+ Start a Discussion
VeevaEmsVeevaEms 

Winter '12 Messing with Javascript List Buttons?

Hello,

 

I've got 2 custom list buttons working in Summer '11 in my production instance, but neither work in my newly upgraded Winter '12 sandboxes.  I can't get any kind of javascript list button to work.... click the button and nothing happens!

 

Example button that does nothing:

 

{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")}

alert("this button works!");

 Did something change about libraries I need to include, profile access to execute Java, anything? 

 

Did I mention I'm training 115 users in 2 days??? HELP!

https://na7.salesforce.com/001A000000kTDTA
Volker_factory42Volker_factory42

Did you try to change API Version?

 

{!REQUIRESCRIPT("/soap/ajax/22.0/connection.js")}

 

Laura LópezLaura López

Hi,

 

I've the same problem. I've tried to change the API Version to all the possible numbers and nothing happens when i click on the custom button.

 

If i delete the lines that include de AJAX Toolkit (requireScript lines) in some cases it works and in others it doesn't, it depends on the previous data.

 

This is happening since Winter 12 version have been refresh on my sandbox instances.

 

What is necessary to include for this to work?

 

Thanks in advance!