© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
acroninja

Repeater relations meta data not merged with existing and overwrites other meta data.

I have 2 forms, each have different fields that both save in the SAME meta json column on the relation.
form1: meta.passport.number + meta.passport.expiry
form2: meta.nationality + meta.date_of_birth.

The data from each form is saved but does not merge with existing meta. I've tried using the
handleRecordUpdate
handleRecordUpdate
and
mutateFormDataBeforeSave
mutateFormDataBeforeSave
on the page but
$data
$data
is empty.
Have tried getting existing data from $this->record and merging with $this->data but the relationship save happens before these functions are called.

In
src/Components/Repeater.php 
src/Components/Repeater.php 
the
$this->saveRelationshipsUsing(
$this->saveRelationshipsUsing(
has the correct data all merged in $state but then it's lost a bit further down. Is this expected behavior?

Perhaps a workaround solution is to create a separate json column for each form - but I have 12 forms each with some different meta. Feels a bit clunky to make separate columns. Any advice gratefully received. Ta.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Repeater with existing data
FilamentFFilament / ❓┊help
16mo ago
how to populate a repeater with existing data?
FilamentFFilament / ❓┊help
2y ago
Not getting data of repeater which is under a repeater with relationship.
FilamentFFilament / ❓┊help
3y ago