How to Trim TextInput field before data is saved?

Is there any way? I can make a Macro, but I need to include afterStateUpdated inside the Macro, will it give a problem with some field using afterStateUpdated too?
4 Replies
LeandroFerreira
LeandroFerreira16mo ago
Filament
Advanced - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
fede8100
fede8100OP16mo ago
thank you Leandro, but it will disabel the use of dehydrateStateUsing on the field, is there any way to use both in the field and the Macro?
Thimo144
Thimo14414mo ago
I am also curious about this, seems very hard to get it to by default trim strings, anyone has a good idea on this?
Want results from more Discord servers?
Add your server