Skip to main content
abeardsl23
Inspiring
August 31, 2017
Question

Captivate 9 Text Entry Box Correct Answer List

  • August 31, 2017
  • 1 reply
  • 373 views

Hello, all.  Does anyone know if there is a way to create and assign a random number in Captivate 9.  I'm thinking the answer is going to involve JavaScript, but thought I'd ask first.

Thanks in advance for any pointers!

Adam

This topic has been closed for replies.

1 reply

Lilybiri
Legend
August 31, 2017

Use JS. Have several examples on my blog but it is now password protected. You have to mail me for access.

There is one on the learning portal: Have fun with.. While loop | eLearning

For a random number between 1 and 6 use this JS to store in a user variable (v_time):

window.cpAPIInterface.setVariableValue("v_time",Math.floor(Math.random()*(7-1))+1);

abeardsl23
Inspiring
August 31, 2017

Thank you, Lilybiri!  I would love to email you for access to the password-protected examples.  Please let me know how I may go about doing so.

Adam

Lilybiri
Legend
August 31, 2017

Send a mail to info@lilybiri.com