Forum Discussion

MichellePrin814's avatar
MichellePrin814
Community Member
31 days ago
Solved

How to incorporate a date checker into a SL course.

Hello. 

I would like to add a way in our compliance courses for a learner to "test out" if they have been employed with the company for at least 3 years.  I'm having trouble figuring out how to have them input their date of hire and have SL check to make sure they have been employed for at least 3 years. If not employed for 3 years, they go to the full course. If employed for 3+, they go to a review/test out scene.  The course has a separate scene for the "test-out" slides. If they fail after two attempts, it will bring them to the beginning of the full course. 

Please advise if you have done this before and how you did it. I'm guessing it will require a combination of variables, triggers, and JavaScript, for which I would need some detailed instructions. 

Thank you in advance!

Michelle

 

  • Jonathan_Hill's avatar
    Jonathan_Hill
    23 days ago

    Happy to help! Would appreciate a 'Marked as Solution' if that works for you.

4 Replies

      • Jonathan_Hill's avatar
        Jonathan_Hill
        Super Hero

        Happy to help! Would appreciate a 'Marked as Solution' if that works for you.

  • Nedim's avatar
    Nedim
    Community Member

    If you're looking for a real date picker with date comparison functionality, this is a concept I worked on some time ago. It essentially converts the Storyline text entry field into a date picker widget with JavaScript. Based on the selected date, it then compares against specific conditions and criteria.

    For example, you can check whether an employee has been employed for 3 or more years. If they have, display a "Review" button; if not, it shows a "Full Course" button instead.