© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
kaufmannmarton

Form KeyValue component dehydrateStateUsing undots keys

I have a simple KeyValue field and am formatting it's state and returning a collection(also tried returning an array but get the same results) and when I submit the form the dehydrate receives the keys undotted.

For example if the state I return from formatStateUsing looks like the following:
['website.url' => 'https://website.com']
['website.url' => 'https://website.com']


Modify the url on the UI.

Then the dehydrateStateUsing will receive it as:
[
  'website.url' => 'https://website.com'
  'website' => ['url' => 'https://website123.com']
]
[
  'website.url' => 'https://website.com'
  'website' => ['url' => 'https://website123.com']
]


I also checked and the formatStateUsing returns the collection/array in the correct format.
image.png
image.png
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

Form - KeyValue
FilamentFFilament / ❓┊help
2y ago
KeyValue Component Collapsing
FilamentFFilament / ❓┊help
3y ago
KeyValue - Form Builder - Fields
FilamentFFilament / ❓┊help
2y ago
mutateFormDataBeforeCreate vs dehydrateStateUsing
FilamentFFilament / ❓┊help
3y ago