© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
qcol

$set and Placeholder content

I have a Select element, after selecting which I wanted to change the content of the Placeholder element. Select is ->live() however if I try in ->afterStateUpdated to give $set("my_placeholder",$new_data) - the placeholder content does not change. On TextInput fields $set works fine. How to do this?
Solution
Placeholder::make('placeholder')
    ->content(fn (Get $get): string => $get('select') ?? '')
Placeholder::make('placeholder')
    ->content(fn (Get $get): string => $get('select') ?? '')
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Textinput value like Placeholder content?
FilamentFFilament / ❓┊help
3y ago
set TextInput placeholder attribute live from other field
FilamentFFilament / ❓┊help
13mo ago
Placeholder sumarize
FilamentFFilament / ❓┊help
2y ago