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.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?