darrenm
darrenm
FFilament
Created by darrenm on 9/25/2024 in #❓┊help
Wizard not submitting data on final step
aha - it wasn't that but it did point me in the right direction. The problem was not the uniqueness of the Placeholder name, it was using the same name for Placeholders as the Form state name. So using Placeholder::make('name') killed the form state for TextInput::make('name'). thanks for taking the time to look
10 replies
FFilament
Created by darrenm on 9/25/2024 in #❓┊help
Wizard not submitting data on final step
It's a bit of a monster, and a work-in-progress, but here's the entire thing: https://gist.github.com/dmlogic/748fc1ed8a4273b173de4fc8a7278d0e
10 replies
FFilament
Created by darrenm on 9/25/2024 in #❓┊help
Wizard not submitting data on final step
it's probably too long to fit in here, there's a screen grab of a representative bit of it above. It's all an array of Section::make() which each have a series of Placeholder::make()
10 replies
FFilament
Created by darrenm on 8/21/2024 in #❓┊help
FileUpload field validation passes on upload but fails on submit
yeah I've been thinking that might be the workaround. I can see a hint that it's getting turned into an octet stream during the submission process. But I've got over it for now with ->rules(['extensions:ico,png']) (although that doesn't work on the client side)
16 replies
FFilament
Created by darrenm on 8/21/2024 in #❓┊help
FileUpload field validation passes on upload but fails on submit
"The favicon field must be a file of type: image/vnd.microsoft.icon, image/x-icon"
16 replies
FFilament
Created by darrenm on 8/21/2024 in #❓┊help
FileUpload field validation passes on upload but fails on submit
yes
16 replies
FFilament
Created by darrenm on 8/21/2024 in #❓┊help
FileUpload field validation passes on upload but fails on submit
FileUpload::make('faviconSrc')
->disk(config('platform.storage.disk'))
->directory('partner/'.$tenant->id.'/faviconSrc')
->acceptedFileTypes([
'image/vnd.microsoft.icon',
])
->imagePreviewHeight('50')
->maxSize(20)
->maxFiles(1)
->label(__('Favicon'))
->panelLayout('compact')
->required(),
FileUpload::make('faviconSrc')
->disk(config('platform.storage.disk'))
->directory('partner/'.$tenant->id.'/faviconSrc')
->acceptedFileTypes([
'image/vnd.microsoft.icon',
])
->imagePreviewHeight('50')
->maxSize(20)
->maxFiles(1)
->label(__('Favicon'))
->panelLayout('compact')
->required(),
16 replies