AfterStateUpdate looks like it isnt working
As you can see in the example above. I have a chosen asset select component. With values of assets. That is working fine. But when some value is selected i want to change other fields according to that.
I try to change the asset_id field below but nothing seems to be working. Can anyone help me with this?
Solution:Jump to solution
Instead of
$value
use $state
, see https://beta.filamentphp.com/docs/3.x/forms/advanced#field-updates4 Replies
Add reactive() to it.
Thank you bro, its working now. But the $value gives problem, seems like that value cant be accesed. Do you know how i can get the value of the chosen option?
Solution
Instead of
$value
use $state
, see https://beta.filamentphp.com/docs/3.x/forms/advanced#field-updatesThanks guys problem is solved.