Need help with updating MoneyInput
I want to get dynamically my currency. Right now i do it like this static:
Here is how I can get my Data where currency is stored:
Now my question, do you guys know how to get the Data in my Money Input as currency??
11 Replies
Maybe by accepting a closure in the currency function?
how u mean? @JJSanders
Is thsi your own Component
No its from Plugin
Which plugin are you using?
https://filamentphp.com/plugins/pelmered-money-field
Should be this
Or This:
Akaunting\Money
Not sure if this is implemented correctly, but if it supports closures you could use
->currency(fn ($get) => $get('additionalData.currency'))
Got this Error, I'm pretty new in Filament
Yeah, I thought so. The plugin uses
$this->evaluate()
to early. Nothing you can change.Okay, thank you anyways