Captivate Help for a JavaScript beginner.
Good day,
I am playing around with javascript in Captivate the same time I am learning the language in general. Maybe not the best practice to help me learn the language, but I thought I'd get some relevant practice doing so. I am looking for a bit of guideance in controling the visibility of smartshapes based upon variables in captivate. Ultimately I am trying to provide a answer check my revealing correct answers indicators (smartshapes) to a non-widget check box interaction in Captivate using JavaScript.
// I thought I could simply assign a varialbe with this code: //
(s1 = window.cpAPIInterface.getVariableValue('cps1'));
// Then run this function to hide a particular shape: //
if ( s1 == '1' ) {
cp.hide('s1')
}
Any help for a noob?
Devin
