cpAPIInterface Not Available
I have used a stripped down version of the below javascript in a Captivate 8 project and it works.
In another project it does not work, it fails on window.cpAPIInterface and shows that "No CPInterface"
What is the reason that the CPIInterface is not available and how can I resolve this issue.
alert("START");
if(window.cpAPIInterface)
{
alert("CPIInterface");
} else
{
alert ("NO CPIInterface")
}
var txtString = window.cpAPIInterface.getVariableValue("Text_Entry_Box_8");
alert("2");
alert(txtString.toString());
SCORM2004_RecordFillInInteraction('99110', txtString.toString(), true, 'strCorrectResponse', 'strDescription', 100, 10, '');
