Copy link to clipboard
Copied
Hi! I'm trying to do an advanced action to hide/show my NEXT button.
The objective is that once the Drop Sources are clicked and dragged to the Drop target, the Next button shows. Otherwise, it will stay hidden. I've done several advanced actions but nothing seems to work.
For this D&D, there's no right or wrong answer. I'm also not using the submit button so I just set it aside. Drag and drop is simply used to show information. I used the Object Actions in the Drop target so the needed info will be displayed once a drop source is dragged to it. I've tried assigning a value to the Drag sources and used this similar workflow: https://www.youtube.com/watch?v=IGzzil5O6hY&t=22s, but nothing works.
Hope someone could help.
Thanks.
Setup was for the D&D, didn't explain well. Count can be defined in the Object Actions dialog box. You have only 1 target. My easy solution with the counter will not work since you allow replacement of the drag sources. Moreover, you cannot use the default Reset button or the functionality will be broken as well.
To show the next button, you have to create a user variable for each of the drag sources, with a default value of 0. The Ojbect actions will be more complicated as well. I hope you used
...Copy link to clipboard
Copied
If you do not define a correct answer, you cannot use the Success/Failure events. That would have been the easiest way as I demonstrated in a webinar about shared actions:
Drag&Drop Actions - Captivate blog explains the object shared/advanced actions
Is it possible to see the set up? Do you restrict the count for the drag objects that can be droppped on the target(s)? Do you allow replacement of drag sources?
My first idea is that you will have to use the object actions to increment a counter, and at the same time check the value of that counter. When the counter reaches the maximum, show the Next button. Something like this:
I had only 3 drag sources in this quickly assembled D&D and two targets. I limited the count to 2 for one target, and to 1 for the other.
Copy link to clipboard
Copied
Hi!
Is it possible to see the set up? Yes. See image below. The next and reset buttons are positioned on the lower right corner. The Next button should only show once all 5 drag sources are clicked/dropped.
Do you restrict the count for the drag objects that can be droppped on the target(s)? No. Infinite attempts. Learner can look at the information numerous times.
Do you allow replacement of drag sources? Yes. Drag source is replaced once a different one is dropped.
I'll read the blog again. I think I've encountered this earlier when I was doing my research. Thank you! I hope that you could also give me additional tips.
Copy link to clipboard
Copied
Setup was for the D&D, didn't explain well. Count can be defined in the Object Actions dialog box. You have only 1 target. My easy solution with the counter will not work since you allow replacement of the drag sources. Moreover, you cannot use the default Reset button or the functionality will be broken as well.
To show the next button, you have to create a user variable for each of the drag sources, with a default value of 0. The Ojbect actions will be more complicated as well. I hope you used states for the feedback text? Each action will need two decisions
First decision 'Always'
Assign v_one with 1
Change state of Feedback to....
Second decision 'Checker'
IF v_one is equal to 1 AND
v_two is equal to 1 AND
v_three is equal to 1 AND
v_four is equal to 1 AND
v_five is equal to 1
Show Next button
Duplicate this action 4 times. In each duplicate change the var and the state in the first decision.
You'll need an On Enter action as well, to reset all variables to 0 and hides the Next Button if you need Reset button. Then create a short (0,1sec) dummy slide before the D&D slide, and a custom Reset button with command 'Go to Previous Slide'.
Copy link to clipboard
Copied
This worked! The reset button is not needed, so I did not create an On Enter action anymore.
Thank you for sharing your knowledge and expertise.
Copy link to clipboard
Copied
You're welcome!