jw
jw
FFilament
Created by jw on 6/13/2024 in #❓┊help
Filament::getPanel('user')->getUrl(); - Potential Bug?
Hello, I was calling this function within a loop. The first time it correctly gives me the 'user' panel URL. On subsequent calls it seems to ignore the 'user' parameter and returns the url of the default panel ('admin'). I tried splitting the function out to: $panel = Filament::getPanel('user'); $url = $panel->getUrl(); Has anyone come across this before or could offer an explanation? Thanks
10 replies
FFilament
Created by jw on 4/21/2024 in #❓┊help
CheckboxList Bug when used inside Fieldset with relationship?
No description
5 replies
FFilament
Created by jw on 4/19/2024 in #❓┊help
Get current value of table filter
No description
4 replies
FFilament
Created by jw on 3/23/2024 in #❓┊help
Get $get function doesn't retrieve value from a field in a different Fieldset
Hi, I'm trying to access the value of 'club_id' using $get('club_id'), however it always returns null. I have xdebug enabled and the function in 'firearm_id' is being called correctly (reactive), but it can't see 'club_id', I presume because it's in another Fieldset? Using $get I can get values from fields within the same fieldset ('Fieldset_2') with no trouble. Is there something else I should be doing in this situation? Code Below Thanks \Filament\Forms\Components\Fieldset::make('Fieldset_1')
->schema([ Select::make('club_id') ->label('Club') ->options( DB::table('clubs as c') ->join('club_members as cm', 'c.id', 'cm.club_id') ->where('cm.user_id', auth()->user()->id) ->pluck('c.name', 'c.id') ) ->live() ->reactive()
->required(), ]), \Filament\Forms\Components\Fieldset::make('Fieldset_2')
->schema([ Select::make('firearm_id') ->live() ->options( function (Get $get) { $club_id = $get('club_id'); // null }) ])
4 replies
FFilament
Created by jw on 2/25/2024 in #❓┊help
Repeater not working within Tab or Wizard\Step
No description
2 replies
FFilament
Created by jw on 2/8/2024 in #❓┊help
Textinput not populating relationship data in EditRecord Form
No description
10 replies
FFilament
Created by jw on 1/26/2024 in #❓┊help
Toggle visibility on Form Field is slow
Hello, Firstly thanks for a great product, really enjoying using it. As per the attached video, when I'm toggling the visibility of a form field using Livewire, it is taking around 1 second for the UI to respond. I can see that it is hitting the database each time it makes the livewire request. Although the database request is fast, it feels unnecessary when I just want to toggle the visibility. If the livewire request can't be sped up, is it possible to toggle the visibility of the form fields using client-side Javascript? Many thanks for your assistance
11 replies