© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
6 replies
Dom T.

I don't understand how I can refresh a field

I want to use a HintAction on a field and refresh another.
with a codebase like this :

`

Forms\Components\RichEditor::make('long_description')
    ->reactive()
    ->hintAction(
          Action::make('getAIDescription')
              ->label('Récupérer la description depuis AI')
              ->action(function (Product $record, EditProduct $livewire, Set $set) {
// I TRIED A LOT OF THING
                  $text = AIService::getDescription($record);
                  $set('ia_description',$text);
//                return $livewire->dispatch('refreshPage');
              })
     )
     ->label('Description longue'),

RichEditor::make('ia_description')
    ->label('Description IA'),
`

Forms\Components\RichEditor::make('long_description')
    ->reactive()
    ->hintAction(
          Action::make('getAIDescription')
              ->label('Récupérer la description depuis AI')
              ->action(function (Product $record, EditProduct $livewire, Set $set) {
// I TRIED A LOT OF THING
                  $text = AIService::getDescription($record);
                  $set('ia_description',$text);
//                return $livewire->dispatch('refreshPage');
              })
     )
     ->label('Description longue'),

RichEditor::make('ia_description')
    ->label('Description IA'),
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

Livewire - Don't understand how it works
FilamentFFilament / ❓┊help
3y ago
i don't understand what dehydration is...
FilamentFFilament / ❓┊help
13mo ago
How can I ->fill() a FileUpload field?
FilamentFFilament / ❓┊help
3y ago
Can't create a custom field
FilamentFFilament / ❓┊help
3y ago