Adding onclick action to a button not working

I am trying to setup a scheduling software that uses a JS button code. I have tried using JavaScript: void(0); and then adding the code onclick="AutoOps.show() to the js portion of the button module but nothing happens. The following JS code is running in the footer section of the site prior to the closing tag.

You added onclick="AutoOps.show() to the JS settings in advanced tab? Thats a HTML attribute.

Example: In advanced tab of button module set the ID to foo then in the JS tab add the following js

document.getElementById("foo").onclick = function() {
    AutoOps.show();
};

Thank you that worked great!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.