Hello esri community;
I want to create an attribute window where I click on the layers as seen in the picture.
I want to fill the content as I want, like a pop-up template.
I found this as an example on this topic, but it didn't work.
// sample js cod
![emreaktas1_0-1720608144838.png emreaktas1_0-1720608144838.png](https://community.esri.com/t5/image/serverpage/image-id/109290iF34850CA9172D122/image-size/medium?v=v2&px=400)
view.on("click" , (event) => {
view.hitTest(event).then((response) => {
let layerCount
layerCount = response.result.length;
for(var i = 0; i < layerCount; i++){
var layername = response.result[i].layer.title
}
})
})