ahmant
Explore posts from serversFileUpload reset after locale switch
Description
In "Edit/Create" form which has a "FileUpload" component, the "FileUpload" content/file will reset/clear when we switch the locale using the "LocaleSwitcher" action button.
Steps to reproduce
1. Create a resource with "Create" and "Edit" pages, with translation
2. Add a "FileUpload" component to the resource form (note that the field/column is not translatable)
3. Open the "Create" or the "Edit" page (similar issue for both pages)
4. Choose a file
5. Switch the locale
=> The "FileUpload" will reset
Expected Behavior
1. If the "file" column is not translatable:
When switching the locale the "FileUpload" field must not change its state
2. If the "file" field is translatable:
When switching the locale the "FileUpload" field must change its state to the new edited locale value, not resetting/clearing every its state
8 replies
Change form submit URL / Route parameters
Hello,
How to change the form submit URL or route parameters?
I have a "Chapter" resource, that's related to a "Course", so in the URL, I have two parameters, one for the "chapter record (ID)" and one for the "related course (ID)"
So when saving, I need to get the course ID from the URL
7 replies
Admin Page translatable?
How can we integrate the custom admin page (https://filamentphp.com/docs/2.x/admin/pages/getting-started) with filament spatie translatable plugin?
8 replies