How's everyone using JavaScript in Storyline... any tips?

Hey folks, I’m really curious about how people are integrating JavaScript into Storyline. What are some cool ways you’re using it? Also, what resources do you turn to for writing or getting code? Would love to hear your experiences!

I recently developed a pin pad on my first slide to gain access to the course. I used JS to concatenate the input, so I could hold a string of numbers together. Plus, I had JS handle the course expiry. I’ve been using ChatGPT to help with code, even if it sometimes makes stuff up. I can read JS enough to tell if it’s on the right track. Claude was better for me, and I’ve heard Gemini is good too!

@acetrent
That sounds interesting! How did you set up the pin pad? Did you find any good tutorials?

I use JavaScript to make my courses more interactive and take advantage of the GSAP library for animations. It really adds a nice touch!

StephieStephie said:
I use JavaScript to make my courses more interactive and take advantage of the GSAP library for animations. It really adds a nice touch!

GSAP is awesome! How do you usually implement it in your Storyline projects?

I’ve been using JS for tracking user interactions and sending data back to our LMS. It’s super helpful!

Breigha said:
I’ve been using JS for tracking user interactions and sending data back to our LMS. It’s super helpful!

Nice! What kind of data do you track? I’d love to learn from your setup.

I mostly use JS for conditionally showing layers based on user input. Makes everything feel more personalized!

BILL said:
I mostly use JS for conditionally showing layers based on user input. Makes everything feel more personalized!

That’s a clever use! Any resources you recommend for learning how to do that?