Forum Discussion

Jasmina1's avatar
Jasmina1
Community Member
2 months ago
Solved

Trigger Logic Issue – Correct Answers Still Show "Incorrect" Feedback

 

Hi everyone,

I'm working on a Storyline interaction where users drag and drop four items (Invoice, Purchase Order, Goods Receipt, and Invoice Quantity) into correct drop targets. I’ve set up triggers to show either a "Correct" or "Incorrect" state based on the drop results.

Here’s how my triggers are currently set up:

✅ Correct Trigger:

Set state of Correct to Selected
When user clicks Submit
If:

  • Invoice = Drop Correct
  • Purchase Order = Drop Correct
  • Goods Receipt = Drop Correct
  • Invoice Quantity = Drop Correct

❌ Incorrect Trigger:

Set state of Incorrect to Selected
When user clicks Submit
If:

  • Invoice ≠ Drop Correct
  • OR Purchase Order ≠ Drop Correct
  • OR Goods Receipt ≠ Drop Correct
  • OR Invoice Quantity ≠ Drop Correct

Despite this setup, even when all items are correctly matched, the slide still shows the "Incorrect" state. I’ve double-checked the object names and state names, and the trigger order is correct (Correct → Incorrect → Submit Pick One).

I also tried testing with just one object set to Drop Correct, but it still shows "Incorrect."

Has anyone encountered this before?

Could it be an issue with how Storyline evaluates the states, or am I missing something in the logic?

Any help or suggestions would be greatly appreciated!

Thanks in advance 😊

  • The problem was that nothing was indicated as the correct answer in Form View.

     

    FYI: It took me a while to determine that was the only issue, because the objects involved in the interaction didn't have meaningful names. That made it very hard to tell if the draggable objects were matched with the correct target. Especially confusing to see text in the draggable objects that was AAA, BBB, CCC, and DDD. I assumed that was the order they should be placed, so my initial testing after fixing Form View still didn't work... 

    The attached file demonstrates some naming conventions that make drag-and-drop programming easier. 

    • For future reference, I'll repeat the advice I gave earlier about uploading a .story file: Be sure objects, layers, motion paths, and variables have meaningful names.

     

    By the way, you could have saved a lot of effort if you had just used a Freeform Drag and Drop question, instead of having a drag-and-drop interaction control a Pick One question.

6 Replies

  • Based on your description, I'd say it should work.

    Are you seeing the change to the Drop Correct state? 

    Are the Correct and Incorrect objects in a button set? (They should be.) 

    Here's one thing I'd do: Delete the trigger that changes the state of Incorrect to Selected. Instead, perform that action in an Else statement on the trigger that changes the state of Correct to Selected. If nothing else, that cleans up the trigger panel. It could also save time and potential troubleshooting, since you only have to enter one set of conditions. 

    Beyond suggesting you triple-check states, the Form View set up, etc., 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.
  • Jasmina1's avatar
    Jasmina1
    Community Member

    Hello JudyNollet​ , thank you for advise.

    I followed the steps you suggested, but now it's showing "Try again".

    Here is uploaded version of the Story file—maybe you or someone else can help troubleshoot it now that you can see how everything is set up. TIA :)

  • Nedim's avatar
    Nedim
    Community Member

    It could be a simple fix or require a more complex solution. I'd start by verifying whether the correct answer is selected in Form View.

  • The problem was that nothing was indicated as the correct answer in Form View.

     

    FYI: It took me a while to determine that was the only issue, because the objects involved in the interaction didn't have meaningful names. That made it very hard to tell if the draggable objects were matched with the correct target. Especially confusing to see text in the draggable objects that was AAA, BBB, CCC, and DDD. I assumed that was the order they should be placed, so my initial testing after fixing Form View still didn't work... 

    The attached file demonstrates some naming conventions that make drag-and-drop programming easier. 

    • For future reference, I'll repeat the advice I gave earlier about uploading a .story file: Be sure objects, layers, motion paths, and variables have meaningful names.

     

    By the way, you could have saved a lot of effort if you had just used a Freeform Drag and Drop question, instead of having a drag-and-drop interaction control a Pick One question.