Feature Request: Element Actions - Update Data Source of List [SOLVED W/ EXISTING FEATURES] see bottom of post for solution

When I go to Amazon’s website I can update my current search based on some checkbox filters or sort the existing search based on a dropdown. These filters and sorts compound on each other, work on the current search, and they can also be undone.

I think this sort of functionality is user friendly and standard for online stores. I could see this sort of filtering and sorting being useful for any app where users are searching for some information or product.

However, I have been unable to find a way to implement functionality like this because I can’t fin a way to refer to previous states of a data source while creating filtering actions on a repeating groups data source.

I tried to get this functionality with a series of Display List actions but the problem is Display List overwrites the existing data source of the repeating group and I can’t refer to the data source in (Result of Step 1…data source) for example so I can compound the filters.

To run this filtering, I thought you could create a custom event that runs every time some filter criteria on a repeating group is changed (as mentioned in another forum post - multiple filters: solved), you could:

  1. specify the initial data source of a list in the first action with Display List (could include existing search input to specify current search results).

  2. add 1 action to the custom event for each filter parameter of the data source (that action would be the requested feature ----> Update List)

  3. Display compound filtered results

With Update List you would be able to specify a previously filtered version of the data source like (Result of Step 1…Data Source) and filter that data source further based on Only When criteria

For example - select action from Element Actions, Repeating Group -----> Update List
- select element —> repeating group Items
- specify data source-----> (result of Step 3…Data Source:filter)
- filter criteria: On Sale = “yes”
- Only When Checkbox On Sale is checked

Now trigger this custom event when a checkbox or dropdown filter’s value is changed and it will run through each filtering action in the custom event to display data that exactly matches all of the selected filter criteria every time that criteria is changed by a user of your app.

Am I not seeing a way that this could be done with existing Bubble Features. Does this feature seem like a necessary addition to get this functionality on my website?

Thanks for the help guys.

THE SOLUTION TO RECALLING THE PREVIOUS STATE OF DISPLAYED DATA IS TO USE, FOR EXAMPLE, “REPEATING GROUP ITEM’S LIST OF ITEMS”, AND USE A SERIES OF DISPLAY LIST COMMANDS ON THE CUSTOM EVENT AS MENTIONED IN THE PREVIOUS POST

“REPEATING GROUP ITEM’S LIST OF ITEMS” IS REFERRING TO WHATEVER FILTERED LIST IS CURRENTLY DISPLAYED SO YOU CAN CONTINUE TO FILTER THE REPEATING GROUP

1 Like