CyladeJS
CyladeJS
Explore posts from servers
FFilament
Created by CyladeJS on 5/18/2024 in #❓┊help
Autofill on TextInput
Code
TextInput::make('purchase')
->label('Purchase')
->numeric()
->required()
->columnSpan([
'sm' => 12,
'xl' => 4,
'2xl' => 4,
]),

TextInput::make('selling')
->label('Selling')
->numeric()
->required()
->columnSpan([
'sm' => 12,
'xl' => 4,
'2xl' => 4,
]),

TextInput::make('profit')
->label('Profit')
->disabled()
->columnSpan([
'sm' => 12,
'xl' => 4,
'2xl' => 4,
])
TextInput::make('purchase')
->label('Purchase')
->numeric()
->required()
->columnSpan([
'sm' => 12,
'xl' => 4,
'2xl' => 4,
]),

TextInput::make('selling')
->label('Selling')
->numeric()
->required()
->columnSpan([
'sm' => 12,
'xl' => 4,
'2xl' => 4,
]),

TextInput::make('profit')
->label('Profit')
->disabled()
->columnSpan([
'sm' => 12,
'xl' => 4,
'2xl' => 4,
])
Hello, I'm just learning Filament. I need help regarding TextInput autofilling. From the code above, how do I ensure that when I fill in purchase and selling, profit will be automatically filled in?
7 replies