Good Evening,
I am trying to update my featureLayer using the applyEdits properties. I am facing some issues as I cannot change the value of the specific layer. I am not sure what is wrong here do assist me on this, cheers! (This project is running on ArcGIS API 3.25
let testButton = document.getElementById('testButton')
if (testButton){
testButton.addEventListener("click",function(){
var announcementInput = document.getElementById('announcementInput').value;
console.log(announcementInput)
featureLayer.applyEdits(
null,
[{
"attributes":{
"objectid":objectid,
"announcement": announcementInput, // I want to update this value
}
}],
null,
null,
null
})
}
else{
console.log("Not working")
}
});
});