Uncaught TypeError: Cannot read property 'checked' of null
at dp_cookieconsent.js?1581195265:6
at Array.map (<anonymous>)
at e.window.addEventListener.e.loadCheckbox (dp_cookieconsent.js?1581195265:6)
at dp_cookieconsent.js?1581195265:6
at Array.map (<anonymous>)
at e.window.addEventListener.e.setCheckboxes (dp_cookieconsent.js?1581195265:6)
at i.onStatusChange (dp_cookieconsent.js?1581195265:6)
at i.setStatus (dp_cookieconsent.js?1581195265:6)
at i.d (dp_cookieconsent.js?1581195265:6)
(anonymous) @ dp_cookieconsent.js?1581195265:6
window.addEventListener.e.loadCheckbox @ dp_cookieconsent.js?1581195265:6
(anonymous) @ dp_cookieconsent.js?1581195265:6
window.addEventListener.e.setCheckboxes @ dp_cookieconsent.js?1581195265:6
onStatusChange @ dp_cookieconsent.js?1581195265:6
i.setStatus @ dp_cookieconsent.js?1581195265:6
d @ dp_cookieconsent.js?1581195265:6
e.prototype.loadCheckbox = function(e, t, o) {
var n = this
, i = "dp--cookie-" + e
, s = document.getElementById(i);
return !0 === t ? this.dpCookies && this.dpCookies.hasOwnProperty(i) && (s.checked = this.dpCookies[i]) : void 0 !== o && (s.checked = o),
n.checkboxes.map((function(t, o) {
t.name == e && (n.checkboxes[o].checked = s.checked)
}
)),
s
}
I've disabled the marketing checkbox via the proposed FAQ way.
<label class="hidden" hidden for="dp--cookie-marketing">
<f:form.checkbox id="dp--cookie-marketing" class="hidden dp--check-box" checked="{settings.checkboxes.marketing}" value="" />
<f:translate key="dpMarketing" extensionName="dp_cookieconsent" />
</label>
This way its in the DOM but is not visible.