© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Jon Mason

text input field update based on another text input

I can't seem to get this working. I want to have one TextInput that's updated when another one is changed by the user. .
 TextInput::make('payment_before_discount')
                ->prefix('$')
                ->live(true)
                ->reactive()
                ->default($this->paymentData['total_before_discounts']),
           
            TextInput::make('payment_amount')
                ->label('Net Payment Amount')
                ->disabled()
                ->prefix('$')
                ->live()
                ->reactive()
 TextInput::make('payment_before_discount')
                ->prefix('$')
                ->live(true)
                ->reactive()
                ->default($this->paymentData['total_before_discounts']),
           
            TextInput::make('payment_amount')
                ->label('Net Payment Amount')
                ->disabled()
                ->prefix('$')
                ->live()
                ->reactive()


When a user changes the payment_before_discount input, I want the value of the payment_amount input to update as well. I've tried using afterStateUpdated and also the default method, but can't seem to get it working.
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

Dinamically update options based on another input
FilamentFFilament / ❓┊help
2y ago
Based on select option set regex in text input field
FilamentFFilament / ❓┊help
2y ago
Update text input dynamic based off other important
FilamentFFilament / ❓┊help
14mo ago
Update RichEditor based on other field
FilamentFFilament / ❓┊help
2y ago