Get value on area Drag And Drop - List Partial Accept | JAVASCRIPT

Hi,

Problem: I create an area Drag and Drop with list Partial Accept.
Could you explain How to get value on area Drag and Drop and Javascript
I created a Drag and Drop area that can accommodate a single element (object A or object B) whose value I would like to retrieve.
I tried with the aria-label but cannot get it back.

ActivePresenter version: 8.2.1

OS: Windows 10

Notes:

Best regard,

Hi,

You can use Drag Source condition in On Accept, On Reject event of a drop target to check which drag source is dropped:

image

You can also get list of drag sources dropped into a drop target using JavaScript:

var droppedObjects = prez.object('drop target name').dropHelper.droppedObjects();
for (var i = 0; i < droppedObjects.length; ++i) {
  var dragSource = droppedObjects[i];
  var dragSourceName = dragSource.name();
  // do something...
}
1 Like