Dinamically update options based on another input
so the question is pretty straight forward, is there a way to update the options of a select field based on another field?
so these options would be nice if I could add an where query
based on this input
Solution:Jump to solution
You need to use
->live()
in such a case. Take a look in the docs to figure all related methods like ->afterStateUpdated()
https://filamentphp.com/docs/3.x/forms/advanced...6 Replies
bump
If you mean to filter the options of bundle_descriptor_id according to streaming_bundle_id value, then update options in the bundle_descriptor_id to be similar to this:
gotcha so it's $get for things like these, tysm
does it update in real time like it's wire:model.live?
or do I have to set some parameters in order to do it
also what if I got this
and I want the sum of the quantity from the marketplaces to be auto updated inside the total_units input?
Solution
You need to use
->live()
in such a case. Take a look in the docs to figure all related methods like ->afterStateUpdated()
https://filamentphp.com/docs/3.x/forms/advancedthanks ur an mvp
You're welcome. Glad to help.