ngoquocdat
Custom property in CreateRecord form
Hello everyone,
Currently, Filament doesn't provide built-in support for the belongsToMany relation in my specific case. Consequently, I've had to resort to using a custom property and managing the creation/editing process manually.
What's peculiar is that this approach works seamlessly in the EditRecord context, but encounters an issue in CreateRecord. Upon submitting the form during record creation, the console reports the following error:
Here's a snippet from my resource form code:
EditRecord code:
2 replies
Dynamic form fields based on dependant fields
Hi guys,
I have already read this section https://filamentphp.com/docs/3.x/forms/getting-started#dependant-fields, but this doesn't help me in this case.
My case:
In Product will have 1 category and a category will have many attributes.
So in product form, when I change the category select, it will get all attributes of that category and show to form as field
Is that possible to do that?
Thank you for helping me.
2 replies
Using Alpine.js inside the existing app with Filament table
Hi, I have a Laravel application and am using Alpine and have a Filament Table installed inside the application
- app.js
- layouts/app.blade.php
But I'm having a problem: a javascript error is reported in the browser console when accessing a page that uses the Filament table.
So is there any way to fix this problem?
Thanks guys.
2 replies
Generate form fields based on relationship when it was changed
Generate form fields based on relationship when it was changed
When the category was changed, i want to get all the
attributes
relationship of this category and show on the form schema as a select field ($attributeGroups
is a list of attribute groups that have many attributes in that group).
Is Filament can do that and how?
Thanks guys8 replies