Quantcast
Channel: Adobe Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 238792

how to assign a user variable with javascript?

$
0
0

I have defined a user variable named v_current with initial value of 3.

 

On first slide, I've put a caption containing "Scenario: $$v_current$$".

 

Also on first slide, I have defined "On Enter" action to execute javascript. The Script_Window contains:

var objCp = document.Captivate;
objCp.cpEISetValue('v_current','8');

 

When the quiz is played, the caption says: "Scenario: 3" so v_current is not updated with javascript, why?

By the way, using Advanced Actions works fine and updates the variable, but I need javascript in this case.


Viewing all articles
Browse latest Browse all 238792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>