Hey there!
A really important thing to remember about repeaters is that any changes to the repeater (adding rows, sorting, updating) causes the entire repeater to refresh. So you’ll notice when you add a row, any data you had in the first row goes away.
This means when you work with a dynamic data set, you need to store all of that data in the repeater so that when it refreshes you can apply whatever data you had.
So, in your example, this means adding columns to your repeater to store the number of hours for the days. It also means you need to add an onItemLoad event to set the hours when they are stored.
Once the data’s all set, you can then add logic to the onItemLoad to set your total hours - because in this approach a change to every field resets the repeater, you['ll need to “Reset” the total hours on the first item and then add the hours in. You can see an example of this in the attached file.
There’s one drawback here - because the updates fire on lost focus, trying to tab through the fields doesn’t work. As soon as you tab and the field loses focus, the repeater refreshes and the current field loses focus. The numbers will all update, but it won’t tab to the next field.
AddingHours.rp (100.4 KB)