FilamentF
Filament13mo ago
giro

Get data from custom form field

From my custom form field how can get data from another field. I try $get but not working

<?php

namespace App\Forms\Components;

use Filament\Forms\Components\Field;
use Filament\Forms\Get;

class TotalProducts extends Field
{
    protected string $view = 'forms.components.total-products';

    public function getData()
    {
        dd($get('blueprint.oferta_comercial.productes'));
    }
}
Was this page helpful?