© 2026 Hedgehog Software, LLC

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

Wrong order after saving a page with a KeyValue field

As its shown in the GIF, after saving the form the order of the KeyValue (json column) rows get reset to the original state.
After refreshing the page the order is correct

public function getFormSchema(): array
{
  return [
    Tabs::make('Pages')
      ->statePath('pages')
      ->tabs([
        Tabs\Tab::make('FAQ')
          ->schema([
            KeyValue::make('faq')
              ->disableLabel()
              ->keyLabel('Question')
              ->valueLabel('Réponse')
              ->reorderable(),
          ]),
      ]),
  ];
}
public function getFormSchema(): array
{
  return [
    Tabs::make('Pages')
      ->statePath('pages')
      ->tabs([
        Tabs\Tab::make('FAQ')
          ->schema([
            KeyValue::make('faq')
              ->disableLabel()
              ->keyLabel('Question')
              ->valueLabel('Réponse')
              ->reorderable(),
          ]),
      ]),
  ];
}
file.gif
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

KeyValue not saving new order
FilamentFFilament / ❓┊help
11mo ago
Update a KeyValue field
FilamentFFilament / ❓┊help
3y ago
Help with persistent table order after saving
FilamentFFilament / ❓┊help
2y ago
Select Input in KeyValue Field ?
FilamentFFilament / ❓┊help
2y ago