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
ihssan tazinyihssan taziny 

How to reference javascript function defined in Static resource in a List Button

I programmed a button to execute javascript code when i click on it. And for the Button code i am using a static resource that has some javascript functions. Here's the way i include my Static Resource in my Button code :

The problem is that when i want to call a function defined in the static resource i get an alert message telling me that the function is not defined.
I am calling the function in my custom Button like this:
var parentForm = this;
var rows = getCheckedRows(parentForm);

So my question is how can i call the function  getCheckedRows. that is defined in the stqtic resource.
Ajay Nagar 7Ajay Nagar 7
Same issue fixed here: