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

Winter '12 Messing with Javascript List Buttons?



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:



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!

Did you try to change API Version?




Laura LópezLaura López



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!