© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
10 replies
Patrick Boivin

Update form field from page action

Hi all, I feel like this is relatively simple Livewire stuff but I can't figure it out. I'm trying to dynamically update a field from a page action in my
EditRecord
EditRecord
class, I've tried a few different things without any luck :

class EditProduct extends EditRecord
{
    // ...

    public function calculatePrice()
    {
        $this->price_retail = 123.45;

        $this->data['price_retail'] = 123.45;

        $this->form->evaluate(fn (Closure $set) => $set('price_retail', 123.45));
    }
}
class EditProduct extends EditRecord
{
    // ...

    public function calculatePrice()
    {
        $this->price_retail = 123.45;

        $this->data['price_retail'] = 123.45;

        $this->form->evaluate(fn (Closure $set) => $set('price_retail', 123.45));
    }
}


Am I getting warmer?
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

Update Form from Action Modal
FilamentFFilament / ❓┊help
2y ago
Update Form FIELD state from JS
FilamentFFilament / ❓┊help
2y ago
Refresh page data from resource form action
FilamentFFilament / ❓┊help
15mo ago
How to update form field from resource Edit page's method?
FilamentFFilament / ❓┊help
3y ago