Custom Code cannot trigger
Hi guys , I have a problem that My custom code didn't work in data collection and I don't know why
Here is the code :
var ArticleCheckBox = document.querySelectorAll('[id^="article"]');
ArticleCheckBox.forEach(function(element){
element.addEventListener('click',function(){
var event = {eVar71: element.getAttribute("name"),};
trigger(event);
});
});