© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
1 reply
Ibraheem

Pass state value inside the createOptionForm

I have a select Component, which has a createOptionForm, I want to pass the value of neighbouring component inside the createOptionForm so I can apply some rules on it

Select::make('a_id')
Select::make('b_id')
.
.
.
  ->createOptionForm([
    Select::('c_id')
      ->rules() // need the value of a_id here
])
Select::make('a_id')
Select::make('b_id')
.
.
.
  ->createOptionForm([
    Select::('c_id')
      ->rules() // need the value of a_id here
])
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

SpatieMediaLibraryFileUpload inside createOptionForm()
FilamentFFilament / ❓┊help
3y ago
Get state from form to createOptionForm
FilamentFFilament / ❓┊help
16mo ago
Repeater acts differently when used inside createOptionForm
FilamentFFilament / ❓┊help
2y ago