# Drag - Drop Reorder Your Repeating Group

**URL:** <https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293>\
**Category:** Tips\
**Created:** [August 19, 2016, 12:13am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293 "2016-08-19T00:13:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vega.andrew](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vega.andrew/32/4683_2.png) [@vega.andrew](https://forum.bubble.io/u/vega.andrew)\
**Post date:** [August 19, 2016, 12:13am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/1 "2016-08-19T00:13:11Z")

</div>

This is a quick guide on implementing drag and drop reordering of a repeating group:

1. Add the order field

 ![](https://us1.discourse-cdn.com/bubble/original/2X/9/932ab0c57bfbbd1f2014aa66d8873f57d8ecf3e7.png)

1. Add / Install the Draggable Plugin

 ![](https://us1.discourse-cdn.com/bubble/original/2X/5/54003c18465abb73bc3f402be1db5630b74fb0d5.png)

1. Add A Repeating Group

 ![](https://us1.discourse-cdn.com/bubble/original/2X/c/c63fbb79d18fd7b2949715fb78cae99de7ce941e.png)

1. Inside of the Repeating Group, Add a Dropzone

 ![](https://us1.discourse-cdn.com/bubble/original/2X/f/f6fed5456b5e242ddd09d3e5c99cabc042f0f9fe.png)

1. Inside of the Dropzone, add a Droppable Group:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/1/1f770adf2f1aa42bf8190e64d6cf9f68c2f433a8.png)

1. Set up a workflow as such:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/5/55628368362cf76eb31b26332044abe2afc40a9e.png)

 ![](https://us1.discourse-cdn.com/bubble/original/2X/d/d28e318e176820f15e1eede193ed83c8c2ee467f.png)

![](https://us1.discourse-cdn.com/bubble/original/2X/d/d44578d145ef0057c4b1659b06744738c5b5c80b.png)

![](https://us1.discourse-cdn.com/bubble/original/2X/1/12b6c282001dbcb33fc89353b429cfae5f949d6d.png)

![](https://us1.discourse-cdn.com/bubble/original/2X/b/b68d2514b0c244037fe1d3b6ecbfa58d6d3a55fa.png)

1. Set up some data:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/7/7ce175a37607bb6172fbbcca6ea56094b54ea7af.png)

1. Set up conditionals formatting on the dropzone

 ![](https://us1.discourse-cdn.com/bubble/original/2X/b/b9e6413ec2772dca596bc1d0ef59c353106dd38d.png)

1. Set up conditional formatting on the draggable group:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/b/b6784fad431b34e7b94e342497b1366e4d31cca0.png)

1. Test it out

2. Remove the ugly background colors and test:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/4/447162fd9bef49ad6a6e583944c80ca802476bce.jpg)

---

<div class="post-metadata">

**Author:** ![Bradluffy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bradluffy/32/955_2.png) [@Bradluffy](https://forum.bubble.io/u/Bradluffy)\
**Post date:** [August 19, 2016, 12:53am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/2 "2016-08-19T00:53:11Z")

</div>

This is great. Thanks for sharing!!

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [August 19, 2016, 3:03am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/3 "2016-08-19T03:03:47Z")

</div>

Love seeing this shared here! Great stuff.

---

<div class="post-metadata">

**Author:** ![vega.andrew](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vega.andrew/32/4683_2.png) [@vega.andrew](https://forum.bubble.io/u/vega.andrew)\
**Post date:** [August 19, 2016, 3:55am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/4 "2016-08-19T03:55:46Z")

</div>

can anyone figure out how to make the repeating group refresh properly without the final two page refreshes? because that would really be killer

---

<div class="post-metadata">

**Author:** ![fayewatson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fayewatson/32/2686_2.png) [@fayewatson](https://forum.bubble.io/u/fayewatson)\
**Post date:** [August 19, 2016, 4:54am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/5 "2016-08-19T04:54:27Z")

</div>

Hi Andrew 🙂 thanks so much for making this guide! I’m trying to recreate what you did, and I can’t figure out what I’m missing at this step:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/d/d42b5817d8b57447f33e185ad3771649623d2956.jpg)

I see that I need to make the new value of the ‘Order’ field equal to ‘Current Workflow’s Contact’s Order’ but I can’t see ‘Current Workflow Contact’ as an option to select? Do you know what I’m missing here?

I copied what I did in the forum app here:

> **[Bubble Editor - Forumapp3](https://bubble.io/page?type=page&name=dragdrop_reorder&id=forumapp3&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![vega.andrew](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vega.andrew/32/4683_2.png) [@vega.andrew](https://forum.bubble.io/u/vega.andrew)\
**Post date:** [August 19, 2016, 10:27am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/6 "2016-08-19T10:27:16Z")

</div>

Does your drop zone have a types for content?

 ![](https://us1.discourse-cdn.com/bubble/original/2X/b/b767ae23ca07f49e1fa10e283d94b6537d7fad91.png)

---

<div class="post-metadata">

**Author:** ![vega.andrew](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vega.andrew/32/4683_2.png) [@vega.andrew](https://forum.bubble.io/u/vega.andrew)\
**Post date:** [August 19, 2016, 12:35pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/7 "2016-08-19T12:35:40Z")

</div>

Something is working now, and the refreshes are no longer needed.

![](https://us1.discourse-cdn.com/bubble/original/2X/8/8e9b8b57f4c7a561bb7063a44568a17eb906ce46.gif)

---

<div class="post-metadata">

**Author:** ![fayewatson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fayewatson/32/2686_2.png) [@fayewatson](https://forum.bubble.io/u/fayewatson)\
**Post date:** [August 19, 2016, 6:03pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/8 "2016-08-19T18:03:42Z")

</div>

Yes, I have that for the dropzone:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/3/35c514a89ad9145ea8aba0729adbeec02d6ef7ea.jpg)

and this for the droppable group:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/1/1a5d9463e97e758c4e3c3dc3c2156e496eb9cccf.jpg)

---

<div class="post-metadata">

**Author:** ![vega.andrew](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vega.andrew/32/4683_2.png) [@vega.andrew](https://forum.bubble.io/u/vega.andrew)\
**Post date:** [August 19, 2016, 6:04pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/9 "2016-08-19T18:04:57Z")

</div>

Ok, how about this setting. I think that is what actually controls that.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/5/55628368362cf76eb31b26332044abe2afc40a9e.png)

---

<div class="post-metadata">

**Author:** ![fayewatson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fayewatson/32/2686_2.png) [@fayewatson](https://forum.bubble.io/u/fayewatson)\
**Post date:** [August 19, 2016, 6:07pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/10 "2016-08-19T18:07:51Z")

</div>

Yes! That was it! Got it now. 😃 Thank you so so much!! 👍

---

<div class="post-metadata">

**Author:** ![chenhsinyu.tw](https://avatars.discourse-cdn.com/v4/letter/c/4da419/32.png) [@chenhsinyu.tw](https://forum.bubble.io/u/chenhsinyu.tw)\
**Post date:** [November 24, 2016, 6:18am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/11 "2016-11-24T06:18:43Z")

</div>

Hi

It is “move back” option so that no Refresh is needed. You just encouraged more ppl to share here. Thanks so much for the tutorial.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/e/e8a44a8433e927b88acfa9cedb03e4b7c497fd1a.jpg)

---

<div class="post-metadata">

**Author:** ![1danielbaker](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@1danielbaker](https://forum.bubble.io/u/1danielbaker)\
**Post date:** [February 19, 2017, 12:27am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/12 "2017-02-19T00:27:58Z")

</div>

Anyone else getting this error?  
 ![](https://us1.discourse-cdn.com/bubble/original/2X/c/cf1a5878d5b59343d2d92e67b60170908270dbdb.png)

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [February 19, 2017, 12:56am UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/13 "2017-02-19T00:56:58Z")

</div>

This isn’t an error, this is the name of the workflow.

---

<div class="post-metadata">

**Author:** ![jasonl527](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jasonl527/32/12105_2.png) [@jasonl527](https://forum.bubble.io/u/jasonl527)\
**Post date:** [April 26, 2017, 7:14pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/14 "2017-04-26T19:14:36Z")

</div>

I’m trying to set the workflow so that when a group is dragged on it, it pushes the others down and keeps the rest above intact. I’m having trouble trying to figure how I would set that up in the workflow

I’ve devised a count system so that every new item gets added to the bottom, and can bring an item to swap places with other items, but not push the rest down. I’m trying to do some sort of declaration thing whereby all the cell’s with a cell index greater than the current cell, their order increases by 1 and any cell with a Food Group Name empty, is deleted.

How would I set this up and what are the flaws?

> **[Bubble Editor - draggablepublic](https://bubble.io/page?type=page&name=droppable_element_by_rank&id=draggablepublic&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

@vega.andrew @fayewatson @chenhsinyu.tw

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott/32/565_2.png) [@Scott](https://forum.bubble.io/u/Scott)\
**Post date:** [April 26, 2017, 7:22pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/15 "2017-04-26T19:22:23Z")

</div>

I suggest only updating the object being dropped to be the average value of the objects that are before and after it in the new sequence. This way, you only perform a single update.

---

<div class="post-metadata">

**Author:** ![jasonl527](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jasonl527/32/12105_2.png) [@jasonl527](https://forum.bubble.io/u/jasonl527)\
**Post date:** [April 26, 2017, 10:20pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/16 "2017-04-26T22:20:48Z")

</div>

@Scott I was thinking of doing that by making the order initially integers and then when I move them, I’ll change the dragged groups value to some decimal like 0.01, or even 0.001+ but realized that eventually it would add up to a full integer higher. Of course I doubt if my users would drag objects a thousand times but just wanted to cover this fringe case.

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott/32/565_2.png) [@Scott](https://forum.bubble.io/u/Scott)\
**Post date:** [April 26, 2017, 10:34pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/17 "2017-04-26T22:34:10Z")

</div>

If you use the average, you won’t run into that issue.

---

<div class="post-metadata">

**Author:** ![jasonl527](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jasonl527/32/12105_2.png) [@jasonl527](https://forum.bubble.io/u/jasonl527)\
**Post date:** [April 27, 2017, 2:23pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/18 "2017-04-27T14:23:17Z")

</div>

@Scott Oh, finally got you. Average between the next one and the one I’m dropping it on. But how would I select the next one?

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott/32/565_2.png) [@Scott](https://forum.bubble.io/u/Scott)\
**Post date:** [April 27, 2017, 3:54pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/19 "2017-04-27T15:54:21Z")

</div>

In each cell, use groups to retrieve the two position values and another to calculate the average.

---

<div class="post-metadata">

**Author:** ![irlwynwood1](https://avatars.discourse-cdn.com/v4/letter/i/ce7236/32.png) [@irlwynwood1](https://forum.bubble.io/u/irlwynwood1)\
**Post date:** [August 1, 2017, 10:07pm UTC](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293/20 "2017-08-01T22:07:49Z")

</div>

hi all , i am trying to build a special droppable where we can drop from dropzone(1) to dropzone(2) , then move the object around while the data side shows a new object in user account, deduct the item placed from a total list of number we have, take the object droppable group and display the object in dropzone (2).  
How to do that.  
I am trying to basically use the top thread rule of moving object as well as adding the rule of making an object move from one dropzone to an other without being a repeating group.

Any idea\>?

[Next page](https://forum.bubble.io/t/drag-drop-reorder-your-repeating-group/5293.md?page=2)
