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,
    ])


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?
Was this page helpful?