© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Alexandre

TextInputColumn (date) submit too fast

Hi all 👋

I have a resource with an “expiry date” table. To go faster, I wanted to add a TextInputColumn to my table so that I could just change the date without having to go through a modal or an edit page. So I did the following:

Tables\Columns\TextInputColumn::make('expiration_date')
  ->label('Expiration date')
  ->placeholder('-')
  ->type('date')
  ->toggleable()
  ->rules(['nullable', 'date'])
  ->sortable(),
Tables\Columns\TextInputColumn::make('expiration_date')
  ->label('Expiration date')
  ->placeholder('-')
  ->type('date')
  ->toggleable()
  ->rules(['nullable', 'date'])
  ->sortable(),


It works, on my table I now have a text field with a calendar available. The problem is that as soon as I start to change a date (if I type a number in the field, for example, or select a day in the calendar) the value is updated directly in the DB, which is a bit annoying because I haven't necessarily finished editing (let's say I want to type day 20, the value is updated as soon as I type 2).

Is there a method I can add to avoid this?
Thanks in advance.
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

TextInputColumn Date Format
FilamentFFilament / ❓┊help
3y ago
Format date using TextInputColumn
FilamentFFilament / ❓┊help
9mo ago
🐞 TextInputColumn type('date') - can't manuly edit
FilamentFFilament / ❓┊help
17mo ago
Columns\TextInputColumn->type('date') not working as expected
FilamentFFilament / ❓┊help
12mo ago