Copy link to clipboard
Copied
Hello,
I am using Adobe Captivate 11.8.0.586. I am incorporating SVGs into my Adobe Captivate project, and I have crafted a custom replay button using the JavaScript code: "cpCmndGotoSlide = cpInfoCurrentSlide - 1;", which appears throughout the rest of the project. However, when I click the replay button, it hides all the SVGs but not the JPEGs. Additionally, when I return to the slide after navigating to the previous slide, all the objects reappear.
Copy link to clipboard
Copied
Hmm.. I know what you need. The SVGs need to be re-rendered again. Instead of the Replay standard action which I explained multiple times you need to re-enter the slide. Have a look at this blog post (or the Captivate tutorial) which explains the difference between Replay and Reset (=re-entering the slide):
https://blog.lilybiri.com/replay-or-reset-slide
https://blog.lilybiri.com/replay-slash-reset-slide-2-captivate-tutorial
In short: you need a variable to store the first frame number of the slide, and use that variable to reset the playhead one or two frames before that first frame number, thus re-entering the slide from the previous slide.
An easier way is to create a very short dummy slide before the present slide, navigate to that slide. Learner will barely notice that there was an intermediate slide.