• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Pass Captivate's System or User variable to html:

Explorer ,
Oct 27, 2019 Oct 27, 2019

Copy link to clipboard

Copied

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.

Views

156

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 27, 2019 Oct 27, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 27, 2019 Oct 27, 2019

Copy link to clipboard

Copied

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 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 27, 2019 Oct 27, 2019

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 27, 2019 Oct 27, 2019

Copy link to clipboard

Copied

LATEST

Great questions!

 

1. 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? 

 

- The cpQuizInfoPassFail was an example, it could also be "user" defined variable. I do intend to have some other information displayed on the html.

 

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

 

- No, it will not be within SCORM package. It will be compiled and submitted through Google play store and the App Store as a mobile app.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources