Hi Steve, welcome to the forum. I told you someone here would have an answer for you. (Thanks larsen)
In case anyone is not sure the script needs to look like this.
var docOCGs = this.getOCGs();
for (var i = 0; i < docOCGs.length; i++) {
if (docOCGs
[i
].name == "Marks" && docOCGs
[i
].state == true) docOCGs
[i
].state = false;
}
Your [s do not need to be blue.