Prefilling a Field in "Create New Option" Modal of a Select Component in FilamentPHP**
I want to prefill a field in the "create new option" modal, Here's the code I've tried, but it doesn't seem to be effective:
Is there a proper way to prefill data in this scenario with Filament, or is this not supported yet?
Any suggestions or code examples would be greatly appreciated.
2 Replies
Alternatively, is there a way to use a function that will eb executed after the form in the modal has been hydrated, in which case, i can jerry-rig it using Get/Set
@Helge Sverre did you ever figure this out. Trying to do this myself as well
ok, so the answer is that you can set $action->fillForm([.....]) within the createOptionAction()