Skip to main content
Known Participant
March 16, 2016
Answered

Is there a way to trigger an advanced action via custom JavaScript?

  • March 16, 2016
  • 1 reply
  • 378 views

I would like to have my custom JavaScript trigger "normal" Captivate actions. 

This could be useful in a lot of ways, but what I would like to do right now is to play an audio clip when certain conditions are met (a conditional advanced action is too clunky for my needs).

Any way to do this? Thanks!

    This topic has been closed for replies.
    Correct answer TLCMediaDesign

    You can trigger an advanced action with JavaScript:

    cp.runJavascript(cp.model.data.objectName.oca);

    The script is for advanced actions that are attached to objects, if it is a slide enter, you'll need to figure out the current slide id.

     

    1 reply

    TLCMediaDesign
    TLCMediaDesignCorrect answer
    Inspiring
    March 16, 2016

    You can trigger an advanced action with JavaScript:

    cp.runJavascript(cp.model.data.objectName.oca);

    The script is for advanced actions that are attached to objects, if it is a slide enter, you'll need to figure out the current slide id.

     

    Known Participant
    March 16, 2016

    Ahhhhh! Works perfectly for my purposes. That's going to be a life changer. Thanks!