czehnter
czehnter
FFilament
Created by czehnter on 1/14/2025 in #❓┊help
preserveFilenames() not working with SpatieMediaLibraryFileUpload
Hi, I'm using the SpatieMediaLibraryFileUpload in a Form Builder. The docs say: "You may use the field in the same way as the original file upload field", however I can't get preserveFilenames() to work. The uploaded files are always renamed - the instruction seems to get ignored completely. Is there anything I'm missing?
12 replies
FFilament
Created by czehnter on 12/11/2024 in #❓┊help
How to use all available Tailwind classes in custom ViewRecord page?
I'm building a custom ViewRecord page inside my panelbuilder, where I want to use all CSS classes provided by Tailwind, not just the ones provided by filament. I've found a solution that suggests adding ->viteTheme('resources/css/app.css') to the AdminPanelProvider. This works in theory and makes the additional classes available, but breaks the panel in some places (some formfields are broken, colors are missing etc.). Is there any other way to achieve this without breaking filament?
5 replies
FFilament
Created by czehnter on 11/8/2024 in #❓┊help
Toggle buttons not working in form integrated in custom ViewRecord page
Hi, I have integrated a form in a custom ViewRecord blade template. The form is defined in the Resource as secondForm() and then integrated into the ViewRecord by defining the getForms() method in the ViewRecord class (e.g. UserResources/Pages/ViewUser.php). The form is rendered in the blade template via {{ $this->secondForm }}. This works in principle, but for every Toggle element used in the form I get the following console error: Livewire Entangle Error: Livewire property ['data.removal'] cannot be found on component: ['app.filament...view-user']. What could cause this error?
2 replies
FFilament
Created by czehnter on 10/10/2024 in #❓┊help
Selectively saving form builder fields in different DB columns
Hi, I built a large form with many input fields in a livewire component with form builder. Most of the fields will be saved directly to their corresponding DB columns, so just creating a new model with $this->form->getState() is fine. However, I want to exclude some of the fields and combine them into a single JSON DB column. Is there any way to exclude fields from the getState() method and save those manually?
5 replies
FFilament
Created by czehnter on 9/25/2024 in #❓┊help
Triggering afterStateUpdated() with $set()?
Hi, I'm trying to to use the afterStateUpdated() method on a TextInput Field, that has been updated/filled by the $set() method from another field. Updating the value using $set() does not seem to trigger the afterStateUpdated() method (unless I'm doing something wrong). Is this not possible? Or how can I achieve this?
7 replies