Benyallan
Benyallan
FFilament
Created by Benyallan on 3/27/2024 in #❓┊help
Select content when receiving focus
Good morning gentlemen, can anyone help me? I would like the form component to select all of its text when it receives focus. Filament v3
3 replies
FFilament
Created by Benyallan on 3/11/2024 in #❓┊help
Create notification in select modal
Good afternoon, a question, I am allowing the user to create a record in the bank that automatically appears as an option in my select, the code works perfectly, but it does not display a notification that it was created successfully. How can I launch this notification when saving the modal? The code that creates the modal that saves my record is in the createOptionForm() function, but it does not have a saved() method Forms\Components\Select::make('modelo_id') ->relationship( name: 'modelo', titleAttribute: 'nome', modifyQueryUsing: fn (Builder $query, Get $get) => $query->where('marca_id', $get('marca_id')), ) ->required() ->createOptionForm([ Forms\Components\TextInput::make('nome') ->required() ->maxLength(255), Forms\Components\Hidden::make('marca_id') ->afterStateHydrated(function (Component $component, Livewire $livewire) { $component->state($livewire->data['marca_id']); }), ]),
2 replies