Skip to main content
Participant
September 8, 2020
Question

Force captivate to use custom CPM.js

  • September 8, 2020
  • 3 replies
  • 432 views

I got a CPM.js located in C:\Program Files\Adobe\Adobe Captivate 2019 x64\HTML\assets\js.

 

I tried to update the index.html file to use the above file and put the following line before /head:

</script>
     <script type="text/javascript" src="C:\Program Files\Adobe\Adobe Captivate 2019 x64\HTML\assets\js\CPM.js"></script>

However, when I look at the CPM.js file that is produced after publishing, I do not see the custom CPM.js file change reflected.

I used to have this working, but needed to do a reinstall and forgot how to make this work again. Any pointers would be greatly appreciated.

 

 

    This topic has been closed for replies.

    3 replies

    TLCMediaDesign
    Inspiring
    October 19, 2022

    Just change the name, it is more than likely getting overwritten when Captivate creates it's CPM.js

    Participant
    October 18, 2022
    In the body of the index.html file you will find a script section containing this line:
    var lJSFiles = [ @JSFILES_ARRAY ];
    Try adding the following line immediately after:
    lJSFiles.push('assets/js/CPM.js');
    Not sure if the default CPM.js will overwrite yours or not, but this is how I get other javascript files to pull on preview or publish.
    Paul Wilson CTDP
    Community Expert
    Community Expert
    September 9, 2020

    I've only copied and pasted any custom CPM.js into my final published project. I've never tried to have a custom index.html file point to a custom CPM.js file. It's more of a manual process but copying pasting the edited version, although manual, works fine. 

    Paul Wilson, CTDP