Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’2y agoβ€’
9 replies
TheNastyPasty

Is it somehow possible to access the value of a different field?

I am trying to use the value of a different field as label for another one.

I tried it like so:
 RepeatableEntry::make('listing.operating_expenses')
      ->label('Operating Expenses')
      ->schema([
          TextEntry::make('operating_expenses_name')
              ->hiddenLabel(true),

          TextEntry::make('operating_expenses_cost')
              ->label(
                  fn($value) => $value['operating_expenses_name'] ?? 'Operating Expenses'
              )
              ->inlineLabel(true)
              ->money('AED'),
      ])->contained(false),
 RepeatableEntry::make('listing.operating_expenses')
      ->label('Operating Expenses')
      ->schema([
          TextEntry::make('operating_expenses_name')
              ->hiddenLabel(true),

          TextEntry::make('operating_expenses_cost')
              ->label(
                  fn($value) => $value['operating_expenses_name'] ?? 'Operating Expenses'
              )
              ->inlineLabel(true)
              ->money('AED'),
      ])->contained(false),

But that seems not work. Help is much appreciated πŸ™‚
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

Is it somehow possible to set the select value to null if not visible
FilamentFFilament / β“β”Šhelp
2y ago
Is it possible to change the color of the text input value?
FilamentFFilament / β“β”Šhelp
3y ago
Is it possible to dynamically set ->defaultItems to be the value from another field?
FilamentFFilament / β“β”Šhelp
3y ago
Is it possible to link to other posts/pages somehow?
FilamentFFilament / β“β”Šhelp
3y ago