estterew.blogg.se

Captivate Variable List
captivate variable list

















Captivate Variable List Update Single Answer

Understand how to update single answer questions to convert them into multiple correct answer questions.How to use Adobe Captivate to create a course for simple calculations, has been popping up on the forums several times. Know how to create variables to keep track of your selections. Adobe Captivate- Responsive Custom Quiz Questions (Udemy) The Adobe Captivate course covers topics like how to create project layouts and use fluid box designs.

captivate variable list

The Expression command is not available as a simple command from the dropdown list in the Actions tab, it is only available in advanced/shared actions.This PDF document contains a printable list of all SystemVariablesin Adobe Captivate 2019. Each of the posts will introduce a JS example. For those who want to start using JS, I wanted to explain some very simple use cases in a sequence of 4 articles that will focus on the 4 basic operators that are available in the Expression command : sum, subtract, multiply and divide.

I will use the Multi-state object feature of Captivate 9 several times as well. That will allow to use the same slide for several sum questions. You'll also see how to assign that generated number to a Captivate variable with the function setVariableValue from the API. Really handy if your project calls for slide titles on the screen.This article will focus on the Sum operator, and introduce JS to make it possible to generate random numbers. These are known as Command Variables and always begin with the prefix cpCmnd.I've been a Captivate developer for may years and have enjoyed the automation of variables such as the system variable'cpInfoCurrentSlideLabel', which inserts the current slide label in place of the variable text on screen.

The idea is to let Captivate randomly choose questions from the pool to create a unique Quiz for each student. A Question Pool is a repository of Question Slides. Scenario Summing slideWorking with Question Pools.

It is possible to change the shown content in this interaction by changing the associated variable (v_result). The user could still add more questions, but no more 'stars' will be added to the progress bar.In this screenshot, from HTML output, you'll see the situation after one successful answer, second sum has been created with 4 terms:Radio buttons - works perfectly for SWF output but formatting is not preserved for HTML output labeled "Wd_TermNumber"Scrolling Text interaction for SWF output, labeled "Wd_SumResult". For an incorrect answer the stick figure also changes to a state but no star will be ended to the progress bar.After completion of 5 correct sums, the stick figure will change to a Next button. The number of terms can be changed after completion of one exercise.For a correct answer, the stick figure will change to another state, and a star will be added to the progress bar (also a multi-state object).

The associated variable for the TEB is the same as for the Scrolling Text Interaction (v_result). In this case an easy workaround, since I used that same shape button for the Scrolling Text Interaction for SWF output. It was replaced by a custom shape button (SB_CheckSum in the timeline) to trigger an advanced action. The default Submit button was deleted. Since there is a bug in Captivate 9, which prevents using a TEB multiple times on a slide, I used a workaround. For that reason I needed an alternative which is aText Entry Box, labeled "TEB_result" combined with the CpExtra widget and a specific command variable for HTML output.

Advanced ActionsIn this particular case it was not possible to use shared actions. I used this to clear the result when defining a new sum. When assigning the value 1 to this variable (with CpExtra widget loaded either in the file, or headless) it is possible to change the associated variable of a TEB by an action, and it will be reflected immediately in the TEB.

The last decision ' ProgressFive' will also change the sticky Character to its state GoNext and enable the click box to proceed to the next slide (subject of the next blog post, with Subtract exercises).The JS method Math.random() generates a decimal number between 0 (included) and 1 (not included).The multiplication Math.random()*(100-10) will result in a random (decimal) number between 0 (included) and 90 (not included).The sum Math.random()*(100-10) + 10 will result in a random (decimal) number between 10 (included) and 100 (not included).The JS method Math.floor(e) will cut off the decimals of the argument e, round iit down to the nearest integer. For an incorrect answer, the counter is not incremented, and the sticky character is changed to another state.The 5 other decisions ' ProgressXxxx' check the value of v_progress and show the appropriate state for the progress bar. For correct answer, the state of the sticky character is changed, the counter (v_progress) is incremented, the state of the button SB_Terms is changed to another state and enabled again, while the button SB_CheckSum is disabled. It is the only decision with a Then and Else part. It doesn't matter that it always sums four terms, since the lacking terms are empty.The second decision ' Checker', will check the entered value (v_result) with the correct value (v_check).

(I'm still a newbie with Cpt as you know !.)I have a big issue with the clearing of the result. That explains the total line of code, which in JS always ends with a semicolon:Window.cpAPIInterface.setVariableValue("v_one", Math.floor(Math.random()*(100-10) + 10)) Conclusion(We've just met on the Captivate Forum !.)I've spent some hours to try to reproduce your resource, but only with 2 numbers (working on the addition tables).Your example was a real and great help and I learned many things !. It is a method of the cpAPIInterface which is in the window object. For the value, which is a number, you can use the expression explained above. Beware: the variable name has to be identified as a string (text) by putting it between single or double quotes.

See you soon on Cpt forum !. But I manage to make something using 10 slides (as I need 10 questions) and replace the v_result by a simple "?" when enter a new slide !.Everything is fine and I want to thank you for this resource !.I hope the third and fourth "playing with numbers" will come soon ?.I also notice that there is (I think ?) a mistake in the SumTerms advanced action, in the TwoTerms condition :It's written "v_check = v_check + v_three" to calculate the sum.And I presume "v_check = v_one + v_two" is better ?.And there's the same in ThreeTerms condition (a "v_two" instead of a "v_three" in the second line)But I'm sure your clever lecturers will have correct these by themselves, as I do !.Big thanks anyway !.

captivate variable list