© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
1 reply
Tjiel

How to get value of other fields in custom component?

Hi all, im trying to create a custom form component that uses the fields of the form to create a preview. But the problem im facing is that I can't seem to find a way to access these fields values.

TextInput::make('name')
    ->label(__('Name'))
    ->required()
    ->maxLength(255)
    ->unique(ignoreRecord: true)
    ->live()
    ->columnSpanFull(),

TemplatePreview::make(''),
TextInput::make('name')
    ->label(__('Name'))
    ->required()
    ->maxLength(255)
    ->unique(ignoreRecord: true)
    ->live()
    ->columnSpanFull(),

TemplatePreview::make(''),

Like in this case, how can I use the value of the name textinput, in the blade file of the templatePreview. As of now, the TemplatePreview is the standard custom filament component when creating one using php artisan make:form-field.
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

How to get value of other TextEntry inside RepeatableEntry?
FilamentFFilament / ❓┊help
2y ago
custom View component interaction to other component
FilamentFFilament / ❓┊help
3y ago
How to get method value in custom column custom view page ?
FilamentFFilament / ❓┊help
3y ago
How to calculate field value based on two other fields?
FilamentFFilament / ❓┊help
3y ago