Problem: I have lot’s of drag source shapes and 4 drop targets and I want to execute some Javascript when a particular drag source is dropped into a particular drop target but not when others are. Is there a way of identifying which drag source has been dropped into which drop target so I can run code based on this.
ActivePresenter Version: 7.5.11
OS: Win10
Notes: I’m not using Drag and Drop Questions, just shapes that have been designated drag sources and drop targets.
Yes, you can identify the object by its name through Javascript code. For example:
Get the current target object name of the event: e.target.name(). It will be the drag source name if you are in the event function of a drag source. Or it will be the drop target name if you are in the event function of a drop target.
Get the dragging object e.value.name(). Use this function in the event of a drop target to get the name of drag source.