© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
54 replies
BuggerSee

Set value of Component TextArea in FormAction

Hello, how can i change the value of a TextArea when a button is pressed? Currently have this code in the class that extends CreateRecord but the ->value() function doesnt work:

$forms = $this->getForms();
$form = Arr::first($forms);
$sqlComponent = $form->getComponents()[0];
$textArea = $sqlComponent->getChildComponents()[1];
$translatedSql = "translated";
$textArea->value($translatedSql);
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
Next page

Similar Threads

Issue in textarea form component
FilamentFFilament / ❓┊help
3mo ago
Textarea value from api
FilamentFFilament / ❓┊help
16mo ago
Update value of the repeater component using $set
FilamentFFilament / ❓┊help
3y ago
Set default value for Builder component
FilamentFFilament / ❓┊help
3y ago