Trasek
Trasek
FFilament
Created by Trasek on 11/29/2024 in #❓┊help
getRawState using at RelationManager?
Is there any possibility to use in custom function in RelationManager:
$data = $this->form->getRawState();
$data = $this->form->getRawState();
I've got error:
App\Filament\Resources\ContractResource\RelationManagers\ContractRealizationsRelationManager::form(): Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Infolists\Infolist given, called in /htdocs/XXX/vendor/filament/infolists/src/Concerns/InteractsWithInfolists.php on line 56
App\Filament\Resources\ContractResource\RelationManagers\ContractRealizationsRelationManager::form(): Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Infolists\Infolist given, called in /htdocs/XXX/vendor/filament/infolists/src/Concerns/InteractsWithInfolists.php on line 56
I am trying to retrieve the current form data for adding a new element in a relationship directly from a given parent element.
5 replies
FFilament
Created by Trasek on 11/13/2024 in #❓┊help
Stepsform + action after submit
Hey, I have a step form with an action to create a new post. I want to add a modal that verifies the post with a special code. All the code is in PostResource/Pages/CreatePost.php within the getSteps function. I'm trying to add a new getActions function and create an action within it, but the modal isn't displaying. How can this be done correctly?
4 replies
FFilament
Created by Trasek on 8/26/2024 in #❓┊help
Adding a repeater to the record view page. Is it possible?
I want to add relationship form in view page. I want to add new records of contract realization with multiple entry. I cannot do it by modal becouse with it i'll create just one record. Is such thing is possible? Or somehow adding a repeater to the modal that will create several elements in a relationship?
5 replies
FFilament
Created by Trasek on 8/24/2024 in #❓┊help
Toggle button without database column?
Hey, can i add toggle button in form without column in database? Only as parametr to form to display or hide some elements?
5 replies
FFilament
Created by Trasek on 8/21/2024 in #❓┊help
Infolist update on delete relation post
Is it possible to update elements in Infolist in resource View, when deleting an element in a table of relationship that displays in ViewResource?
2 replies
FFilament
Created by Trasek on 8/19/2024 in #❓┊help
Filament Shield Languages
I have published the translations with the appropriate code i.e:
php artisan vendor:publish --tag="filament-shield-translations’
php artisan vendor:publish --tag="filament-shield-translations’
But after changing to a different language I only get rules e.g.
Filament-shield::filament-shield.resource.label.roles
Filament-shield::filament-shield.resource.label.roles
There are no translations. Anyone had a similar problem?
11 replies
FFilament
Created by Trasek on 8/9/2024 in #❓┊help
Hide default action buttons
Hey i try to remove default actions buttons like "Create", "Create & create another", "Cancel", but i cannot find any informatio in docs about that. I'am using wizard and my own buttons to save the form.
11 replies