Hi,
I am having issues setting up the Print Widget using API version 4.24. I am getting the following error in the browser console:
Uncaught TypeError: Cannot read properties of null (reading 'defaultValue')
See the attached screenshot for the full error.
My printer widget code is fairly simple:
new Print({
view: view,
printServiceUrl: url,
container: "print-container",
templateOptions: {
legendEnabled: false,
}
});
Interestingly, when I use the printServiceUrl provided in the examples (https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task) the printing service works, but when I use our own REST API, I get the error mentioned above. Does anyone have any suggestions as to how we can resolve this issue, either through the JS code, or through the REST API?
Thanks in advance,
Adrien French