© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
3 replies
Erdos Holland

New Record Modal does not work in Select Form

I have a Select button that draws options from the database. I also want the user to be able to create a new category in case it doesnt exist in one of the available options. However, when I press the add button, it changes into a loading icon for a bit then reverts back to the original + icon. The modal does not appear at all.

Here is the code used for it:
Select::make('category')
                ->model(Project::class)
                ->relationship(name: "task_category", titleAttribute: "name")
                ->createOptionForm([
                    TextInput::make('name')
                        ->label('category name')
                        ->required(),
                    TextInput::make('code')
                        ->label('category code')
                        ->required()
                ])
                ->label('select task category')
Select::make('category')
                ->model(Project::class)
                ->relationship(name: "task_category", titleAttribute: "name")
                ->createOptionForm([
                    TextInput::make('name')
                        ->label('category name')
                        ->required(),
                    TextInput::make('code')
                        ->label('category code')
                        ->required()
                ])
                ->label('select task category')
image.png
Solution
Okay, it turns out you need to add
<x-filament-actions::modals/>
<x-filament-actions::modals/>
to the livewire component's blade file. Thanks for taking the time though!
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Dependant select in modal form
FilamentFFilament / ❓┊help
2y ago
Select field not showing new created record using modal
FilamentFFilament / ❓┊help
3y ago
Select does not record the data
FilamentFFilament / ❓┊help
2y ago
Form select createOptionForm modal width
FilamentFFilament / ❓┊help
3y ago