Hello,
I’m attempting to reset all status flags in the TOC when entering a specific slide. I’d like to use JS to call the clearVisited function, but I feel I’m not getting the array loaded correctly. The Clear Button exists, so we should be able to call the function through a script.
Long story short, does anyone have experience calling this function? My javascript abilities are not up to par to dig through the CPM.js and find the smoking gun.
Thank you,
Joel T
If you simply want the TOC cleared when entering a slide, try placing this code in an Execute JavaScript onEnter Action
for (var a = 0; a < tocContent.parentObj.tocEntries.length; ++a) {
var b = tocContent.parentObj.tocEntries[a];
cp.toc.tocPersistanceManager.clearVisited(b);
b.visitedDiv && (b.visitedDiv.style.visibility = “hidden”);
b.entryContainer.visited = !1
}
You must be logged in to post a comment.