createOptionForm without relationship
I am stuck in this scenario,
I have source model that has possible sources, when user is registering the user can select the existing source or create a new one.
But as far as I know to use createOptionForm you need to bind it to the relationship. And the problem is since there is no user instance to call relationship on, it's not working. Is there any way to use createOptionForm for Model and not relationship ?
4 Replies
you dont need the relationship
use
createOptionUsing
and createOptionForm
🤯🤯🤯🤯, Thank you @Lara Zeus I didn't find it in the docs.
This is my code, The popup doesn't show when clicking plus button.
are you using panels or forms only?
check the dev console for errors
and if you're using the forms only
make sure to add this to your blade
<x-filament-actions::modals />
@Lara Zeus It works now ! Thanks a lot again.