# Update numeric data field in a repeating group using Current cell's index

**URL:** <https://forum.bubble.io/t/update-numeric-data-field-in-a-repeating-group-using-current-cells-index/65308>\
**Category:** Database\
**Created:** [August 27, 2019, 12:54pm UTC](https://forum.bubble.io/t/update-numeric-data-field-in-a-repeating-group-using-current-cells-index/65308 "2019-08-27T12:54:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ale83ge](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@ale83ge](https://forum.bubble.io/u/ale83ge)\
**Post date:** [August 27, 2019, 12:54pm UTC](https://forum.bubble.io/t/update-numeric-data-field-in-a-repeating-group-using-current-cells-index/65308/1 "2019-08-27T12:54:37Z")

</div>

Hi,  
I’ve this problem in my app:

Users can create tours with stages, each leg has a number field, so:

User create a tour and starts to add stages, first will have “1” number, second “2”…

let’s make,for example, tour has 4 legs, in my repeating group i will see my 4 items list, from 1st to 4th:

-leg A --\> mumber 1  
-leg B --\> number 2  
-leg C --\> number 3  
-leg D --\> number 4

Now, if user deletes “leg C”, i will remain with legs A,B,D, and a numeric values of 1,2,4. I would like that when users delete a leg, all the “number” values of remaining legs were updated to be sequential again, taking the position from the current cell’s index if possible, in a way to get finally:

-Leg A --\> number 1  
-Leg B --\>number 2  
-Leg D --\> number 3

Thanks all,  
Alessandro

---

<div class="post-metadata">

**Author:** ![moabe.leite](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/moabe.leite/32/259777_2.png) [@moabe.leite](https://forum.bubble.io/u/moabe.leite)\
**Post date:** [May 2, 2022, 2:52pm UTC](https://forum.bubble.io/t/update-numeric-data-field-in-a-repeating-group-using-current-cells-index/65308/2 "2022-05-02T14:52:27Z")

</div>

You need a backend workflow to change all items from the list
