christhompsontldr
Limiting validation rules
I have a single form with multiple sections. I declare the validation rules for each field via the
->rules()
method. I would like to only process the validation rules for the section that the action button was pressed in. I have reasons for using ->rules()
instead of Filaments helper methods like ->string()
.
In the following code, when the personal_action
button is pressed, I want to validate name
but not company_name
. Or, when the business_action
is pressed, I want to validate company_name
but not name
.
Is there a way to accomplish with Filament?
2 replies
Temporary files are never moved
I am using Filament's Wizard for a multi-step form. On step 1, the model is created. On the last step, some files are uploaded. Those files make it to the livewire-tmp directory, but they are never moved after the form is submitted.
The files are not renamed or moved. I feel like I probably need to call a method to process the files, but the documentation doesn't mention it.
18 replies
Showing a relationship on one infolist, but not on the other.
I have an
InstallerResource
that has an edit page and an onboarding page.
The problem is, that configuring getRelations()
here, puts the Markets relationship on both the onboarding
page and on the edit
page. I only want it on the edit
page. How do I exclude that relationship from the onboarding
page?4 replies