# "Drag and drop" in an orderly way?

**URL:** <https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081>\
**Category:** Support Questions\
**Created:** [September 8, 2020, 9:29pm UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081 "2020-09-08T21:29:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Betty](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/betty/32/1413_2.png) [@Betty](https://talk.atomisystems.com/u/Betty)\
**Post date:** [September 8, 2020, 9:29pm UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/1 "2020-09-08T21:29:53Z")

</div>

Hello everyone!  
I would need some help…  
Is it possible to perform the “drag and drop” in an orderly way?  
That is… the objects should be moved in a precise order.  
Can it be done with Active Presenter?  
Thank you very much for your help. 🤗

ActivePresenter version: 8.1.1

OS: MacOs 10.13.6

Notes:

---

<div class="post-metadata">

**Author:** ![Hang](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/hang/32/865_2.png) [@Hang](https://talk.atomisystems.com/u/Hang)\
**Post date:** [September 9, 2020, 2:41am UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/2 "2020-09-09T02:41:27Z")

</div>

Hi Betty,

It’s possible to perform the “drag-n-drop” in an orderly way. Below are our instructions on how to do that:

1. Cover each drag source by a transparent shape. (To make a transparent shape, insert a shape \> change its opacity to 0).
2. Hide the next transparent shape when the previous drag source is accepted. In the **On Accept** event of the drop target, add the **Hide Object** action.
3. In the Accept list of each drop target, select only one correct drag source. ( **Properties** pane \> **Drag-n-Drop** section \> **Drop Target** \> **Accept List** ).

For more information, please take a look at this sample:  
[drag-n-drop orderly.approj](https://talk.atomisystems.com/uploads/short-url/eN63NPe0xOkgVam1SUPGC9dHlT4.approj) (260 KB)

Regards,

---

<div class="post-metadata">

**Author:** ![Betty](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/betty/32/1413_2.png) [@Betty](https://talk.atomisystems.com/u/Betty)\
**Post date:** [September 9, 2020, 8:33am UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/3 "2020-09-09T08:33:26Z")

</div>

I thank you so much Nguyen, but it was not what I was looking for.  
In your example, the student should forcefully move the first object… but I wanted him to have the possibility of error…

---

<div class="post-metadata">

**Author:** ![Hang](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/hang/32/865_2.png) [@Hang](https://talk.atomisystems.com/u/Hang)\
**Post date:** [September 9, 2020, 9:31am UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/4 "2020-09-09T09:31:43Z")

</div>

Well, if you wants the student to have possibility of error, you can add actions to the **On Accept** event of each drop target as follows:  
 ![image](https://talk.atomisystems.com/uploads/default/original/2X/d/d573633e418def66c68777c4127d6adfa3f651d8.png)  
In case there are so many drag sources and drop targets, you can consider using advance action as in the project below:  
[drag-n-drop orderly (1).approj](https://talk.atomisystems.com/uploads/short-url/kFboyJM3OuEmLixjev03BUFKoRn.approj) (268 KB)

Best regards,

---

<div class="post-metadata">

**Author:** ![Roxie](https://talk.atomisystems.com/letter_avatar_proxy/v4/letter/r/67e7ee/32.png) [@Roxie](https://talk.atomisystems.com/u/Roxie)\
**Post date:** [September 9, 2020, 10:17am UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/5 "2020-09-09T10:17:56Z")

</div>

I always do things a clunky way, so I don’t usually offer much help. However, you could set a text variable and concatenate upon drop and then do a comparison. Concatenate a on the variable for 1st, b for the 2nd, and c for the third drop and then set a button to compare if the user did them in the correct order…something happens if “abc” and something else if not, such as “cba.”

---

<div class="post-metadata">

**Author:** ![Betty](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/betty/32/1413_2.png) [@Betty](https://talk.atomisystems.com/u/Betty)\
**Post date:** [September 9, 2020, 11:50am UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/6 "2020-09-09T11:50:41Z")

</div>

Excuse me…but perhaps I expressed myself badly from the very beginning…  
The objects must all be dragged into the same box, but in precise order…

---

<div class="post-metadata">

**Author:** ![Roxie](https://talk.atomisystems.com/letter_avatar_proxy/v4/letter/r/67e7ee/32.png) [@Roxie](https://talk.atomisystems.com/u/Roxie)\
**Post date:** [September 9, 2020, 12:26pm UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/7 "2020-09-09T12:26:22Z")

</div>

You can still do it by adjusting your variable. Use action on the Drag Sources with the event on “Drag End” and concatenate the variable.

---

<div class="post-metadata">

**Author:** ![Betty](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/betty/32/1413_2.png) [@Betty](https://talk.atomisystems.com/u/Betty)\
**Post date:** [September 9, 2020, 1:21pm UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/8 "2020-09-09T13:21:44Z")

</div>

No, I’m sorry… I can’t make it with the variables…  
I don’t know which one to use… I always have to translate into Italian, and then I get confused… 😥  
But thank you very much for your time! 😘

---

<div class="post-metadata">

**Author:** ![Hang](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/hang/32/865_2.png) [@Hang](https://talk.atomisystems.com/u/Hang)\
**Post date:** [September 10, 2020, 1:43am UTC](https://talk.atomisystems.com/t/drag-and-drop-in-an-orderly-way/4081/9 "2020-09-10T01:43:13Z")

</div>

Hi Betty,

Could you provide us with a sample that you would like to make and describe it in detail so that we can understand what you are exactly looking for?  
You can send the project to [support@atomisystems.com](mailto:support@atomisystems.com)

Best Regards,  
Hang
