After deep thought process, positive feedback from here, some nights & days with "hot mocha" & trial/error, this approach works perfectly for me and hopefully be helpful for others.
*Note this approach is for those wanting to take an external html file and link it to a specific slide within captivate, if you are building within captivate, then use the provided features within the program.
tested on:
CP2019
We execute this in a custom html just above the header tag:
<!-- Custom slide jumper -->
<script>
$(document).ready(function()
{
$("#link").click(function(event)
{
window.parent.window.cpAPIInterface.setVariableValue( 'cpCmndGotoSlide',0);
});
});
</script>
</head>
then add this inside the body tag:
<body>
<a id="link" href=""><img src="../img/back.png" alt="home" class="nj-home"></a>
.... your other inputs........
</body>
You can customize the image source link to include class as well.
for me, inside the javascript ( 'cpCmndGotoSlide',0);
The 0 refers to the slide number, so basically when the user clicks on a custom image, it takes them back to the starting point. I have used this approach for other areas in my project by changing the 0 to any slide I want the user to go to and it works
flawlessly.
Cheers,
Scott