Gudao
Gudao
FFilament
Created by Gudao on 5/21/2024 in #❓┊help
Customize and export a JSON column
How do you format the JSON values in the database within the exporter file. Im trying to make these values easily readable by the user exporting them
28 replies
FFilament
Created by Gudao on 5/10/2024 in #❓┊help
How to use ngrok to host Filament website
No description
2 replies
FFilament
Created by Gudao on 5/9/2024 in #❓┊help
How can I open or download mp3 files from view page
No description
21 replies
FFilament
Created by Gudao on 5/2/2024 in #❓┊help
Clearing a dependent Select field when the field that it is depending changes value
I need help in finding a way to clear or dehydrate the 'name' Select Field whenever the LOB Select Field changes Select::make('LOB')->label('LOB') ->options($departmentLabels) ->live(), Select::make('name')->label('Name')->searchable() ->options(function (callable $get) use ($groupedUsers) { $lob = $get('LOB'); return $groupedUsers($lob) ?? []; }),
so far ive tried the method ->afterStateUpdated() but the problem there is any other field that changes also clears the name field and I can really use a conditional in the method to check if the old state != new state
47 replies
FFilament
Created by Gudao on 1/30/2024 in #❓┊help
Using Salesforce REST api in filament
Is there anybody here who has used Salesforce and their api for a filament project before? I want to use Sushi plugin for it as well but it requires a link to generate a model from static values but have no idea how to get that certain link from Salesforce or what to search to find how to get this link.
8 replies
FFilament
Created by Gudao on 1/15/2024 in #❓┊help
TextColumn displaying custom output
No description
10 replies
FFilament
Created by Gudao on 1/8/2024 in #❓┊help
Edit Page not showing Hidden Field
I am encountering this problem with a Conditional Select Field where if the role of the user is Vendor, another section appears but if it is defaulted as Vendor in Edit User, it is not visible and you have to reselect it to Vendor for it to reappear. How can I fix this? return $form ->schema([ Group::make() ->schema([ Section::make() ->schema([ TextInput::make('name')->label('Full Name'), TextInput::make('email')->label('Email'), TextInput::make('password')->label('Password') ->password() ->dehydrateStateUsing(fn (string $state): string => Hash::make($state)) ->dehydrated(fn (?string $state): bool => filled($state)), Select::make('roles') ->native(false) ->relationship('roles', 'name') ->live(), ]), Section::make() ->schema([ TextInput::make('user_rate')->label('Rate') ->numeric(), TextInput::make('user_distance_rate')->label('Rate Per Distance') ->numeric(), Toggle::make('user_preferred')->label('Preferred'), ]) ->hidden(fn (Get $get): bool => $get('roles') != 2) //2 is the id of Vendor role ]), Here is the code for context
3 replies