Skip to main content
alfredmack
Inspiring
December 3, 2019
Question

Hide Default Submit Button in Drag and Drop Quiz

  • December 3, 2019
  • 1 reply
  • 1498 views

Hi,

I have a drag and drop slide with 3 drop targets and 1 drag object with one attempt set. Now I want to hide a submit button until a drag object is dropped in any of the three drop targets to avoid empty submission, unfortunately default submit button has no id which I can use to hide. I have tried to refer similar issues in the forum and I saw another idea of making another button and put on top, when I tried this I came to notice that the button is still clickable even when is behind another button. Any help please..

This topic has been closed for replies.

1 reply

Lilybiri
Brainiac
December 3, 2019

Stacking interactive objects is NEVER a good idea, although some experts claim it works. It used to be possible for SWF output but is to be avoided for HTML5 output.

 

The Submit button is an embedded object, like all the quiz buttons. You can drag it out to the scratch area, you can activate the Auto Submit (works only for correct answers). Moreover you can use the Object actions.  That may be a solution for  you to avoid empty submit. Create a counter variable which you increments which each object action. Add a second decision to that action, which checks the value of the counter and shows a previously hidden text (or state of a multistate object) to warn if the counter variable is still equal to zero.

alfredmack
Inspiring
December 3, 2019

Thanks for your quick response, I'm expecting my users to pick wrong/correct answer for this case I think auto submit won't be a solution to my problem.

Lilybiri
Brainiac
December 3, 2019

It is scored D&D slide.


That is complicating. Try this (didn't check it myself):

  1. Make the default Submit button 'invicible'. It is mostly a Transparent button (of you can change to that type). Set both Alpha and Stroke to 0.
  2. Create a shape that looks exactly the same as the Submit button before making it invisible and locate it over the invisible Submit buttons. Make that shape invisible in Output.
  3. Use the object actions to trigger the command 'Show shape' to make the shape visible. 
  4. Although the Submit button is invisibe I suspect it will be activated when clicking the shape.... you have to double-check.