© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
1 reply
Aethernaut

Select::createOptionForm fill?

I have an
Action
Action
with 2 wizard steps. The first step contains a
Select
Select
input with a
createOptionForm
createOptionForm
from another resource. How can I fill in some values to this form based on the current record?

Minimal example (with some details removed for brevity):
Forms\Components\Select::make('assigned_user_id')
  ->relationship('assignedUser', 'name')
  ->createOptionForm(function (Form $form) {
      return UserResource::form($form)
          ->fill(['name' => 'testing']); // This is not working??
  })
Forms\Components\Select::make('assigned_user_id')
  ->relationship('assignedUser', 'name')
  ->createOptionForm(function (Form $form) {
      return UserResource::form($form)
          ->fill(['name' => 'testing']); // This is not working??
  })
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Select multiple - fill
FilamentFFilament / ❓┊help
8mo ago
Set Select Option After createOptionForm
FilamentFFilament / ❓┊help
3y ago
Select::createOptionForm not always work
FilamentFFilament / ❓┊help
3y ago
Form select createOptionForm modal width
FilamentFFilament / ❓┊help
3y ago