© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
Roland Barkóczi

Update RichEditor based on other field

I would like to pre-populate a RichEditor field if another field changes:

 TextInput::make('Prompt')
   ->label(__('AI Assistant'))
    ->afterStateUpdated(function (Set $set,) {
             $set('content', 'Foobar');
       }) 
   ->live(onBlur: 500)
    ->columnSpan(2),
RichEditor::make('content')
    ->required()
     ->columnSpanFull(),
 TextInput::make('Prompt')
   ->label(__('AI Assistant'))
    ->afterStateUpdated(function (Set $set,) {
             $set('content', 'Foobar');
       }) 
   ->live(onBlur: 500)
    ->columnSpan(2),
RichEditor::make('content')
    ->required()
     ->columnSpanFull(),


But it does not work. It works with a plain TextInput. What I'm doing wrong?
Solution
@rolandbarkoczi Can you check again, The same code is working on my machine, and click outside the input field after you have finished typing in Prompt field.
Jump to solution
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

RichEditor: Dynamic mergeTags based on other fields value
FilamentFFilament / ❓┊help
4mo ago
Form field value based on 2 other fields
FilamentFFilament / ❓┊help
13mo ago
Change repeater field label based on other field value
FilamentFFilament / ❓┊help
16mo ago
How to calculate field value based on two other fields?
FilamentFFilament / ❓┊help
3y ago