Hello,
is there any way to get selected layout and format when the user change selection in the dropdown menues ?
Thanks,
Nadia
Hi @nadmoat, thanks for the question. What are you trying to accomplish?
If you open the developer tools of your browser and look at the network traffic, you can see the Format and Layout_Template in the request:
You could also listen for an event when the printing is fired off and discover the Layout and Format that way:
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#events-summary
Hey @nadmoat ,
you can get the templateOptions using the watchUtils.
watchUtils.watch(print.templateOptions,"layout", (event)=>{
console.log(event)
});