Live data in an action modal form
So I've got something that is pretty easy with a normal form, but I am unsure how to do it when building a form inside an action. I basically have one select field whose options are dependent on the value of another select field.
I know the data is available in the $data array, but I can't figure out how to access that outside of ->action( ).
Solution:Jump to solution
This is standard Getters in FIlament like you are doing, but your $get will fail to get the type from above, you need to travese out of the repeater with:
$get('../type') or $get('../../type') to get that data....
2 Replies
Solution
This is standard Getters in FIlament like you are doing, but your $get will fail to get the type from above, you need to travese out of the repeater with:
$get('../type') or $get('../../type') to get that data.
Thank you! Works perfectly. Didn't realize the getter worked like that.