Forum Discussion
Help with Javascript code
Hi, I wonder if anyone can help me with a project.
I inherited a project from the person who built this. The project is a flashcard activity where Storyline shows a random flashcard with a term on it to the user and then the user can choose to either move on or save the card to a review session later.
This project was working until I started working on it and now I'm trying to track down where I went wrong. The previous user had named that slides alphabetically. (So slide 1 was named "A". It also meant slide 27 then became "AA", which presented some problems as this project grew to 198 flashcards.) I added flashcards and I updated the slides to be named numerically in order to avoid slides getting mixed up due to being named "A", "AA", "AAA", etc.
I know the problem is that the variable slideNum is not being populated. This variable is getting set by Javascript coding and I'm unfortunately new/self-taught in coding.
Here's the Review 360 link: AcronymAndAbbreviations_Flashcards_TEST | Review 360 (articulate.com)
And my latest Storyline save is attached.
Does anyone happen to know what I did to mess up the coding and cause the variable slideNum to not get populated anymore? I checked an older version of this project and it did work before. I think the Javascript coding in slide 2.1 Term Picker, or Slide 2.2 Term Picker is the culprit.
I'd really appreciate the help! Thank you so much in advance!
- Jürgen_Schoene_Community Member
one "/" is missing (you see the line has the wrong color)
- AlexaAndresCommunity Member
Oh my goodness... I knew it was something small like that!
Thank you so much, Jurgen!