AnsweredAssumed Answered

How can you refresh the Print Widget?

Question asked by Qu0ta7 on Apr 2, 2018
Latest reply on Apr 2, 2018 by Qu0ta7

I am using the esri/dijit/Print in an application. On print-complete, I have the new page automatically open in a new tab.

 

printer.on("print-complete", function (evt) {
    window.open(evt.result.url);
});

 

When user returns to original page, the print button is still displayed as "printout"

I have tried using printer.refresh(); which amazingly works, but kicks out errors in the console.

 

I would like the print button to return to it's printer.startup(); state after print-complete.

Outcomes