Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Drag and Drop Functionality

Explorer ,
Feb 19, 2016 Feb 19, 2016

I'm trying to achieve a very specific type of drag and drop functionality as follows:  No Submit buttons, or buttons of any kind.  The user drags and if the answer is wrong, the dragable piece immediately returns to its starting position.  If correct, it sticks.  Is this possible?  I'm using captivate 9.

Thanks,

Jeff

519
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 19, 2016 Feb 19, 2016

Pretty simple. Drag the Submit button off the stage. You can also select Auto Submit (not really necessary).

Select each Drop target, open the Object actions on the Format tab. Uncheck 'Accept All' and indicate only the correct drag sources. This has to be done for every Drop target.

Translate
Community Expert ,
Feb 19, 2016 Feb 19, 2016

Pretty simple. Drag the Submit button off the stage. You can also select Auto Submit (not really necessary).

Select each Drop target, open the Object actions on the Format tab. Uncheck 'Accept All' and indicate only the correct drag sources. This has to be done for every Drop target.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 19, 2016 Feb 19, 2016

Thanks Lilybiri, this works great.  I really need to do the Lynda.com tutorial on Drag and Drop.

One problem, the audio that I had cued up on success when clicking the original submit button no longer plays when all three drag and drops are correct.

Jeff

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 19, 2016 Feb 19, 2016

Did you check Auto Submit?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 19, 2016 Feb 19, 2016

Yes, Auto Submit Correct Answers is checked.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 20, 2016 Feb 20, 2016

What do you exactly mean by "the audio that I had cued up on success when clicking the original submit button no longer plays"? Did you create an action for the Success event? How is that action looking?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2016 Feb 22, 2016

Hi Lilybiri, what I mean is that I have an "On Success:" Play Audio set up.  For whatever reason, this audio is no longer playing once I have successfully dragged the three drag sources to their correct positions.  They lock into position just fine, but the audio doesn't play at that time.  The attached image shows my setup:

DragAndDrop.jpg 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2016 Feb 22, 2016

I figured out the reason why my audio wasn't playing...I had "Type: Sequence" selected in the "Set Correct Answers" dialogue, which meant I had to drag and drop in a specific order.  I changed it to "Combination" and now it works fine...

Thanks,

Jeff

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2016 Feb 22, 2016

OK, sorry, was so busy... Another user had problems with understanding that Sequence vs Combination. You never got a correct answer for Sequence.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2016 Feb 22, 2016
LATEST

No apologies necessary!  You have been such a big help!

Actually I did get a correct answer, but only if I did them in the correct order.  So sometimes the audio would play.  But I couldn't figure out why it would only work some of the time.  I figured maybe it was some kind of timing error until I remembered the sequence thing. 

Jeff

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources