© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
36 replies
Fabien K.

Select::createOptionUsing not updating selected element in v3

I can't make it work. I'm using v3.0.39

Here is an dummy example

Select::make('test')
->options(function(){
    return Tag::pluck('name','id');
})
->createOptionForm([TextInput::make('name')])
->createOptionUsing(function($data){
    $tag = new Tag();
    $tag->fill($data);
    $tag->save();
    return $tag->getKey();
})
Select::make('test')
->options(function(){
    return Tag::pluck('name','id');
})
->createOptionForm([TextInput::make('name')])
->createOptionUsing(function($data){
    $tag = new Tag();
    $tag->fill($data);
    $tag->save();
    return $tag->getKey();
})

The record is created but the select doesn't reflect the change.

Thanks in advance
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 not filled after createOptionUsing
FilamentFFilament / ❓┊help
3y ago
createOptionUsing on select not called in livewire component
FilamentFFilament / ❓┊help
2y ago
Problem with createOptionUsing in Single Select
FilamentFFilament / ❓┊help
9mo ago
Default select not being selected
FilamentFFilament / ❓┊help
3y ago