Copy the data of all fields to an new entry

I have a BookResource and would like to have a 'copy' button (next to the Edit button in the list view) that copies all data and creates a new book entry. can't find something like that, anyone any ideas? Thanks!
Solution:
thanks! Great! (I used ->before(function (Title $record) { instead of mutateRecordDataUsing(function (Title $record) { because the mutateRecordDataUsing didn't change the replica)....
Jump to solution
2 Replies
Solution
Martin Branches
Martin Branches5mo ago
thanks! Great! (I used ->before(function (Title $record) { instead of mutateRecordDataUsing(function (Title $record) { because the mutateRecordDataUsing didn't change the replica).
Want results from more Discord servers?
Add your server
More Posts
How can I get current active form tab in a EditResource page?I use the tabs layout for a form https://filamentphp.com/docs/3.x/forms/layout/tabs, I want to get c`EditAction` and `DeleteAction` on a ViewRecord's `getHeaderActions` method throws an errorI have the following `ViewRecord` page for a resource and adding HeaderActions `EditAction` and `DelEdit the Relation in View ModeI have a resource that has a View Mode and the resource has a relation manager class associated witLight/Dark Mode LogoHi I have the following for my logo: ``` <div x-data="{ isdark: localStorage.getItem('theme') === 'select searchable || multiple || native=false call duplicate ajaxI have a form with a select tag and a repeat. The select tag has allowHtml and searchable(true) attrPage refresh when header action is clickedHi, is it possible to refresh a page when a header action is being clicked? I tried this so far: ``Adding HasMany to Form Tabs or HasOne to the Top TabsHi, i want to add either the hasMany relations to the form tabs like the hasOne Relations: Forms\Set the state of ->afterStateUpdated inside a testMy page shows some text after the user selects a certain entry form a Select::make(). I use the ->afRelocating create button to inside my grid structureHi, I'd like to relocate the create buttons to inside my schema. Is there an easy way that I can doIssue with HTTP ERROR 500 when using "->groupsOnly()" methodHello everyone, I'm currently facing an issue and I'm struggling to understand why. Whenever I atte