Forum Discussion

brewvet63's avatar
brewvet63
Community Member
2 months ago

Strange behavior

I am creating a lesson where a student will need to enter a 14 digit alpha numeric number consisting of 14 individual inputs, one for each character. These input fields are combination of text and numeric. After entering the information into each field the student then clicks a Submit button where the data entered is evaluated using Javascript to ensure it matches a certain pattern. If the pattern matches they are taken to a Success layer if not the are taken to an Incorrect layer.

In testing this by previewing the slide it works as expected. However when previewing the scene where this slide resides it fails every time with the Incorrect layer being shown even though the data entered is correct.

I am stumped, what am I missing here? How can previewing the scene change the outcome? 

 

 

1 Reply

  • When a single slide works when it is previewed by itself but doesn't work when it is previewed with other slides, the problem often is that the same variable is used on more than one slide. When previewing the one slide, you don't see how it is affected by other slides (for example, the value it has when the slide starts may no longer be the default value).

    If that's not the problem with your slide, well, troubleshooting is just guessing without seeing all the programming. Someone might be able to solve the issue if you upload the .story file. Here are the best practices for doing that:

    • Only include slides that are related to the problem.
    • Be sure objects, layers, motion paths, and variables have meaningful names.
    • If there is proprietary content, replace or delete it. For example, replace proprietary text with “ipsum lorem” text.