on click handler on standard back button

1
I am building a widget and some of the functionality that I am building attaches event handlers to some of the buttons that are present in the page, with dojo on. The handlers do work when you attach them to microflow buttons and data grid buttons, but they does not seem to work with the standard cancel button, can somebody explain why?
asked
1 answers
1

You can add a handler to cancel buttons just fine.

Assuming your cancel button is called "cancelButton1", you can go to the page in the client, open the console and paste this:

require(["dojo/on"], function(dojoOn) { 
  dojoOn(document.querySelector(".mx-name-cancelButton1"), "click", function(e) {
    console.info(e);
  });
});

You'll see that the listener is executed correctly.

answered