Captivate Undo for Drag Drop
July 18, 2019
Captivate Undo for Drag Drop
July 18, 2019
Newbie 1 posts
Followers: 0 people

Hi,

I can use advanced actions with drop target in drag and drop interaction, here i am using it to increment a variable say A. But if i want to add a undo button, i need the last drop source to reset and also decrements the value of the variable A, that i changed just now.

The problem is there is no option of using advanced action with undo button.
— is there a way that i can add an advance action to undo button or create my own undo button which backtrack my last move and also execute an advance action

All Comments
Sort by:  Most Recent
2019-07-19 12:28:36
2019-07-19 12:28:36

I was able to do so by clicking the undo button from javascript, – document.getElementById(‘#undoID’).click();
you can get undoID from element inspector from chrome.
Thanks again

Like
(2)
(1)
2021-04-07 13:23:50
2021-04-07 13:23:50
>
shreym30387712
's comment

Have you checked if it works with Android or IOS?

Like
()
2019-07-19 09:09:04
2019-07-19 09:09:04

Sorry, I don’t send solutions privately. Check my blog for Drag&Drop.

Like
(1)
2019-07-19 07:57:50
2019-07-19 07:57:50

AFAIK there is no possibility for that. The object actions have an event, which is needed to trigger an action, but the Undo button is an embedded object, has no individual timeline and its action cannot be redefined. You cannot replace it, unless that is possible with JS, by a custom button. I have created a custom  Reset button, because the embedded Reset is not resetting everything, but I never have found a way to do the same with the Undo button. I will reflect, if I see a solution, will be back.

Like
(1)
(1)
2019-07-19 08:04:43
2019-07-19 08:04:43
>
Lieve Weymeis
's comment

Thanks I will wait for the Undo,

Can you send me the reset button you created?

Like
(1)