© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
rubendn

Function after selecting from datalist in TextInput

Is there a way to run a function after selecting an option from a dynamically created datalist in a TextInput?

This is the scenario:
I have three TextInputs: FirstName, LastName, Suffix
When the user starts typing in the FirstName field, I want to return a datalist of current FirstName+LastName+Suffix from the database for them to choose. I think I can do this using a function in the datalist of FirstName.

What I want to do next is fill in the FirstName, LastName and Suffix fields based on the selection from the datalist in FirstName.

I don't want to use Selects because I want the user to easily add new values to the fields.

Thanks!
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

How do I make the Textinput datalist dorpdown none native?
FilamentFFilament / ❓┊help
3y ago
TextInput with an autocomplete function
FilamentFFilament / ❓┊help
2y ago
Select dependant from TextInput
FilamentFFilament / ❓┊help
3y ago
Exclude TextInput in Form from saving in database
FilamentFFilament / ❓┊help
3y ago