Getting the first access to a course using a piece of JavaScript

Jul 02, 2015

Hi,

First of all, thanks everybody for all the posts and discussions.

It helps a lot when you start with Storyline.

 

Today I'm kind of a little stuck...

I'm currently building a quiz and I'd like to restrict the time to 2 hours, not more, to answer the questions. Also, I don't want the quiz to be paused. Of course the learner can exit the quiz at anytime, but I would like to restrict anyway the time he can spend on it.

For that I played with the options provided in Storyline ('never resume', 'set the integrated timer'...) but it never exactly meets my requirements.

The main reason is that if a learner exits the quiz in the middle of the questions, when he comes back later the timer starts back from where it was which finally will exceed the 2 hours I want for the quiz.

 

I believe I can do it.

Yesterday I found interesting discussions on JavaScript and LMS API on those forums.

I know now for instance how to retrieve from the LMS the name of the learner.

 

I looked then in details at my LMS and it provides me with the 'First Access' information. That is the very first time the learner opened the quiz. I think I can work out something there with that information and the current time.

Then my question is, how can I get the 'First Access Time' from my LMS using the LMS API of Storyline. If that cannot be done, is there any functions that would tell me something on the time spent in the quiz?

Unfortunately the LMS API is not documented, and it is really hard to dig into it.

Thanks!

1 Reply
Christie Pollick

Hi, Olivier -- Welcome to the community! You may already be aware of this, but I wanted to share that Articulate does not provide support for JavaScript coding, however, it may be helpful to take a look at this document on JavaScript Best Practices. Hopefully, some of our JS experts in the community can chime in with suggestions! 

This discussion is closed. You can start a new discussion or contact Articulate Support.