© 2026 Hedgehog Software, LLC

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

Calculated fields in form builder

Hi, I can't find the documentation section that describes how to do "calculated" fields in the form builder. I have a
FileUpload
FileUpload
field and I need to store some information about the file in the database, in my case audio length in milliseconds. What's the lifecycle function I can use to fill my
audio_length
audio_length
field based on the file upload? Do I have to do this by listening to a model created event, and fill the column after the row is added?
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

KeyValue - Form Builder - Fields
FilamentFFilament / ❓┊help
2y ago
Form builder - File fields?
FilamentFFilament / ❓┊help
3y ago
summarize calculated fields in footer
FilamentFFilament / ❓┊help
2y ago
Error in documentation. (Form Builder -> Fields -> Builder) methods doesn't exists
FilamentFFilament / ❓┊help
2y ago