F
Filament14mo ago
Tiber

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( ).
No description
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....
Jump to solution
2 Replies
Solution
toeknee
toeknee14mo ago
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.
Tiber
TiberOP14mo ago
Thank you! Works perfectly. Didn't realize the getter worked like that.
Want results from more Discord servers?
Add your server