Real-time Input Updates in Edit Page with Relation Manager

I would like to update a readonly input on the edit page as I change the data in a Relation Manager. In my case, it's with numbers: I have two models, CashRegister and Transaction. In CashRegister, there's a field called closing_balance, and I want it to update in real-time as I add transactions through the Relation Manager on the edit page of the CashRegister resource. Could the same be achieved through a widget on the edit page or perhaps a card? Another example would be based on this screenshot from the Filament demo. Is it possible to sum the values of each product and display that on the same screen?
No description
2 Replies
Matthew
Matthewthis hour
You would need to dispatch an event to do that.
Emanuel Alderete
Emanuel AldereteOPthis hour
Yeah, that worked! Thanks!

Did you find this page helpful?