acabust
acabust
FFilament
Created by acabust on 11/10/2024 in #❓┊help
How to Pass Dynamic Data from Filament Form to Livewire Component for Price Calculation
Thank you very much! Great help
6 replies
FFilament
Created by acabust on 11/10/2024 in #❓┊help
How to Pass Dynamic Data from Filament Form to Livewire Component for Price Calculation
ive also tried this: Livewire::make(CheckOutInfoList::class, function (Get $get) { //here you can do some necessary calculation before passing to the component return [ 'variable_name1' => $get('field_1'), 'variable_name2' => $get('field_2'), //more fields ]; }) On component: public $field1; public $field2; //others fields public function mount($variable_name1, $variable_name2, //others variables){ $this->field1 = $variable_name1; $this->field2 = $variable_name2; //others variables } However: Property [$expeditor_id] not found on component: [app.filament.resources.order-resource.pages.create-order] When attempting to set public attribute '$expeditor_id' on 'create-order' component is no longer reactive.
6 replies