Skip to main content
xtd8865
Known Participant
December 18, 2017
Answered

Access variable values

  • December 18, 2017
  • 3 replies
  • 226 views

Hi,

Each learning interaction or other elements can provide or provides a variable name.

How can I access those variables at a later stage. I know there's an option to include them in reporting to get the total score but I'd like to do some calculations on them and provide different / customised reporting on the last slide. How can I access the vars from previous slides?

Thank you

    This topic has been closed for replies.
    Correct answer RodWard

    Captivate only has either System Variables (the number of which you cannot add to but you can sometimes assign values to) and User Variables, which are variables created by the Captivate developer.

    If a Learning Interaction needs to write values to a variable that you can display somewhere, you're going to have to create that as a User Variable.  Simply adding a Learning Interaction to your project won't create the variable automatically.

    System Variables and User Variables can all be displayed inside Text Captions or Smart Shapes using the Insert Variable option provided in the Properties area.  Take a look at this post:

    http://www.infosemantics.com.au/adobe-captivate-advanced-actions/how-to-display-variables

    3 replies

    xtd8865
    xtd8865Author
    Known Participant
    December 18, 2017

    Thank you guys for your clarification. I found the 'insert variable' option. I'll read on the Execute JS options.

    Lilybiri
    Legend
    December 18, 2017

    What a coincidence! I am busy writing out a workbook to start with variables, and am just in the middle of the part 'Learning interactions and variables'. First of all I have to warn you: those variables are NOT created automatically because you type a name in the variable field of the Properties dialog box for the interactions. More information:

    Tips - Learning Interactions - Captivate blog

    Secondly: some of those variables are really useful. Examples are the variables associated with Dropdown, List, Radio Button and Checkbox. Others are just Booleans: the variable associated with the games (one exception) don't store the score, just 1 if you played the game. All information iis in the table which you can download from the link I provided.

    RodWard
    Community Expert
    RodWardCommunity ExpertCorrect answer
    Community Expert
    December 18, 2017

    Captivate only has either System Variables (the number of which you cannot add to but you can sometimes assign values to) and User Variables, which are variables created by the Captivate developer.

    If a Learning Interaction needs to write values to a variable that you can display somewhere, you're going to have to create that as a User Variable.  Simply adding a Learning Interaction to your project won't create the variable automatically.

    System Variables and User Variables can all be displayed inside Text Captions or Smart Shapes using the Insert Variable option provided in the Properties area.  Take a look at this post:

    http://www.infosemantics.com.au/adobe-captivate-advanced-actions/how-to-display-variables