Reference Images via JS
Hey everyone,
I'm trying to find a way to use random numbers to select images on a slide. I've got the JS working for generating the random numbers and a user defined variable that it's assigned to in Captivate. The issue I'm having is I can't find a way to use that number to show an image on the slide. I tried using multiple tabs on an advanced action, but that didn't work well.
The way it's set up is the JS will execute on slide enter. When the user presses the button on the slide, it will read the random number, pick the appropriate image, and display it. So far, the slide enter code works. It generates the number and assigns it to the User Defined Variable.
When I try creating an advance action with multiple tabs, only the first tab executes. Is there a way to have Captivate run through multiple If/Else scenarios that I'm not seeing? I'm on Captivate 2017 V 10.0.0.192 on a corporate system so I can't upgrade to the latest at the moment. This is the latest approved for our org for now.
Any advice you can provide is greatly appreciated! Thank you.
