Play sound on trigger Drop Correct


I don't fully understand how the Drop trigger condition works. Attached you see a page with a drag and drop exercise. In the Nästa layer I want to play one sound if the exercise is performed correctly and another sound if the student fails.

I thought I could use the condition Drop correct but I can't seem to make it work.

Any suggestions how to get it right?



10 Replies
Helen Tyson

Hi Gustaf

I'd do this using the inbuilt feedback layers. You don't need to have any text on them, but if you click the more button in the feedback area of the question form you can delete the feedback text and import the audio files onto the layer.

You could then try to use the Drop Correct and Incorrect states of the dice to trigger the appearance of the checkmarks and crosses underneath if you wish to, but you will need to create the Drop Correct & Incorrect states manually, they aren't created automatically.



Ashley Terwilliger

Hi Gustaf,

There are a few things happening in this file that are causing the audio to not play:

- The interaction is set up to delay the feedback drop states until the interaction is submitted, yet it's not set to be submitted till your on the layer and therefore the audio wouldn't play

- You're also using the "And" condition to play the audio for all correct or all incorrect, you may also want to consider what happens if one is correct and two are incorrect?

- There are no dropped correct/incorrect states set up for you objects. You'll need to add them to the state of each item - you don't need to change their appearance unless you want to.

Hope that helps you with your file and let us know if you need anything else! 

Gustaf Sylvin

Aha Ashley.

I think you just gave me a clue. I thought the drop correct/incorrect feature was determined and decided once you hit the Submit button. But as you say, these are just  states.

But how can I use these states here as all boxes are correct for some dropped targets?

One other thing regarding the forum itself. Earlier I got an email for every new reply in a thread. Now I just get an email for the first reply. Then I need to check my threads manually. Is there any changes in the forum settings or is it Win 8.1? I blame everything on Win 8.1 these days.


Gustaf Sylvin

And the reason for waiting to submit the interaction is that if I have it on the first Rätta button (the base layer), the submitting will make the page to jump immediately to the next page. That is why I put it on the Nästa button on the layer Nästa.

It is a bit of a catch 22. Is there any way to solve it? How can I play a correct/incorrect sound befor I submit the interaction?


Ashley Terwilliger

Hi Gustaf,

I would agree on at a lot of the Windows 8.1 issues - just updated myself the other day. :-(  But I don't think that is what is causing the forums reply issues - after you reply in a post you'll need to select "subscribe to replies" at the top of each thread to be notified by email. If you're the initial poster, you should receive the replies automatically until you reply yourself, and then you'll need to subscribe. It's a feature we've had to include due to spammers in the forums. 

The dropped correct/incorrect states do need to be added to each item and then they'll be applied based on what is correct/incorrect. These states are further described in this article.  It sounds like you may have figured out a method that would work for you, so please feel free to let us know. 

Gustaf Sylvin

OK Thx for the forum update. Now I know.

Well I just added the drop correct and drop incorrect to all dragable items and said Show layer Correct it all items are dragged correct.

Show layer Incorrect if any of the items are dragged incorrect.

Now, afterwards, it seems pretty easy and straight forward.

Thanx Ashley, you pointed me in the right direction to solve the problem.