Forum Discussion
Custom SUBMIT button not working
Hi,
We've created a Hotspot activity with a custom submit button and removed the player submit button. However, when selecting the hotspot, even if it's the correct answer, the custom submit button considers it as incorrect.
Can anyone please take a look at the storyfile?
Thanks!
- WendyFarmerSuper Hero
Trying putting your custom submit button on a layer and add two triggers:
- to show Submit layer when the hotspot is selected and
- to show Submit layer when users clicks outside hotspot
Then add the submit interaction trigger on the Submit layer.
Attached is a sample file and here is a peek of it working
- SusanJovesCommunity Member
Hi Wendy, similar issue and I have cross referenced with another thread here (for multiple hotspots submit on player, from Alyssa Gomez 4 years ago). I followed your sample above and have come one step closer. But for some reason, even if I select the correct response, the incorrect feedback still shows. I am disabling the player as well and I am at a loss as to what I am missing? Can you help please? Thanks!
- WaltHamiltonSuper Hero
David,
There is a solution here:
- DavidBreenCommunity Member
Thanks Walt! Very clever.
With this hack I don't suppose you were able to figure out a method to keep your drag items randomized? This currently does the trick for me but I would probably have to give up my randomization. If I only dragged one item to the location and it was wrong, then clicked submit there's a good chance it goes to the location of another drag item and gets hidden behind it.
I might be able to set up a scenario where the only way my submit button is active is when all 4 drags have been placed on a hotspot. That way the original randomization is kept on Screen load and then they don't overlap after submit.
Thanks for the great idea, Walt.
- WaltHamiltonSuper Hero
When you click on the custom button, that becomes the spot on the slide you selected, and it is incorrect. I don't know if there is any way around this apart from the built-in submit button.
- WaltHamiltonSuper Hero
You're welcome. PIAWYC (Pass it along when you can).
- WaltHamiltonSuper Hero
Wendy for the win! (as usual)
- DavidBreenCommunity Member
Maybe the wrong place put this seems recent. I have a Free form Drag and Drop and I've built a custom Submit button.
4 Drags and 4 Targets. Drag 1 to Drop 1, 2 to 2 etc. I want to have unlimited attempts. When I click the submit button is there any way to keep the Drags that are correct in their Drop Correct state and any of the drags they got wrong to snap back to their original spot?
Aside from reloading the entire Slide each time they click the submit button with wrong answers is this possible? Or is the Submit button only used to check for correct and incorrect answers and then providing feedback?
Hi David,
Never the wrong place, you're always welcome to tag into another discussion or start a new one!
The design of a drag and drop slide is to leave the items where they were dropped so that a user can move them again, and only have to move the ones they *think* they got wrong.
You can use the built-in drop correct/incorrect states if you wanted to let them know which ones were wrong, but there isn't an option in the drag and drop set up to only snap back the incorrect. The cool thing about the states is they'll work without triggers - you can see all the definitions and how they'll behave here.
If you'd still like to reset the slide and have the learners try again with everything reset, take a look at one idea here.
- MariaCSStaff
Hi, Susan.
Thank you for sharing the .story file!
I previewed it on my end, and it looks like it's working as expected:
Are you experiencing something different than the screen recording above?
- SusanJovesCommunity Member
Maria, you were selecting the wrong answer and getting the correct feedback. The correct answer (as indicated in the feedback) is the middle one - for which I was getting the incorrect feedback.
- WaltHamiltonSuper Hero
The form View shows that the answer Maria was selecting is the correct answer.
- SusanJovesCommunity Member
That's the interesting thing Walt: the form view shows it is the correct selection. However, in the slide view, it is actually the third image/hotspot that's the correct response.
I have amended to follow timeline and slide view (third image/HS) and ignore what was being shown in the form view. So far, now working.