This is probably one of my oldest requirements with Bubble, but I haven’t posted in past. I’ve felt this need way too many times. And I guess others would have faced it too.
We have events like When a group is visible
or When an input is changed
or When an input is clicked
etc.
But we do not have any for When source data of a group is changed from old value to new value
.
Many times groups (especially reusables) have certain data sources (and parameters in case of reusables) which are dynamic expressions. There is a need to track cases when these data sources change so that certain actions can be performed e.g. Updating certain custom state in a reusable, or to invoke a custom event to perform some calculations (Say I change some date or input number and I should recalculate taxes, or due date etc.) or to show a pop-up.
This would also be helpful to track changes in pre-filled forms.
It can also be used to build useful reusable components e.g. Say I want to build a little component where I select the date, and it will give me its day, month and year components in a custom state for me to use it elsewhere. This is just a simplistic example to convey the point.
Please note that I am not talking about DB trigger that is there which is “when a thing changes”. That is for the cases where the inherent values inside a particular thing changes. I am just talking about data source
changing from one value to another.
Link in the ideaboard for your upvotes: Ability to have an event for change of data source of a group or reusable | Bubble