Skip to main content
zMerlinz
Inspiring
October 28, 2019
Question

Pass Captivate's System or User variable to html:

  • October 28, 2019
  • 1 reply
  • 270 views

Just curious if anybody found a way to pass captivate's system or user variable to an html and how it can be accomplished.

 

For example:

Looking to use an html file to display cpQuizInfoPassFail variable inside it and wondering how can this be accomplished?

 

Any input is greatly appreciated.

    This topic has been closed for replies.

    1 reply

    RodWard
    Community Expert
    Community Expert
    October 28, 2019

    You could move the variable value over to a GET variable and encode it in the URL that calls the HTML page:

    http://www.infosemantics.com.au/adobe-captivate-widgets/cpextra/help/data-persistence

    Look down to the heading about GET variables.

    zMerlinz
    zMerlinzAuthor
    Inspiring
    October 28, 2019

    Hi Rod,

     

    Thanks for your input.

     

    That would be perfect if I was to place it on a website.

     

    Currently looking to output captivates variable in responsive mode and been digging around to see if this has been done. Amazingly, there is very to no hits on how to accomplish this, which is suprising seeing that capivate has been around since 2004.

     

    Btw, great product your cpextra is 🙂

    RodWard
    Community Expert
    Community Expert
    October 28, 2019

    The cpQuizInfoPassFail variable only gives you a 0 or 1 value to indicate failure or pass of the quiz.  Is that all you are trying to display or did you intend to have some other information displayed on the HTML page depending on what the value of the variable was? 

     

    Is this HTML file supposed to be within the Captivate SCORM package or somewhere else, e.g. on a website?