Repeating Group Data to Database

I have a repeating group that I want to trans input values by the user to the database? For example, I have a repeating group of athletes that the user (coach) will input 3x time trials for each athlete. These inputs for the time trials are in the repeating group in the same row for EACH athlete. I want to get the athletes name and 3x time trials inputted by the user (coach) to the database when clicking the SAVE button to create a new thing (Workout Results). I have been unsuccessful up to this point due to not being able to find the input value (time trials) to populate the database because they’re in the repeating group.

Any help would be appreciated.

Is the save button also located in the same row within the repeating group for each athlete? If so, I think the athlete’s and input information should be accessible within the button’s workflow

It is not. The button is located outside the repeating group. I have been trying to avoid having the user click 50-100 “Save” buttons for each row of data I want saved to the database.

Hi there,

What you’ve found is not an uncommon question for Bubble. Truth be told, getting data out of a repeating group ‘natively’ is not as straightforward as it should be. There’s a few approached i’d recommend looking into, depending on your use-case:

  1. If the repeating group’s data type is Text, you can simple refer to ‘This Repeating Group’s (data)’ when saving in the workflow.
  2. If it’s of type (Bubble Database Thing), you can have a Custom State of that type (Bubble Database Thing), as a list, and everytime an input is edited, the Custom State updates. When you Save, you’ll save the Custom State’s value.
  3. You can use a plugin like BDK’s RepeatingGroup Tools, which gives you full access to everything inside the repeating group (and again…I don’t know why this isn’t native Bubble capable - it’s a very common request!): RepeatingGroup Tools ( bdk ) Plugin | Bubble

Currently, I have been able to use a backend workflow with custom state to most of the data. I am struggling to pull the data that is specific to each rows cell or (athlete) in my case. Currently the inputs of the last row are populating every cell in the database. How can I get the data to stay specific to each row within the repeating group?