inherit class attributes based on selected option

is it possible to autofill the remaining inputs based on the value of the option selected. using the form builder inside a custom livewire component
No description
2 Replies
toeknee
toeknee15mo ago
Please read the #✅┊rules and don't paste screenshots. Yes, use:
->live()
->afterStateUpdated(function($state, callable $set) {
$record = $items->where('id', $state)->get();
$set('title', $record->title)
} )
->live()
->afterStateUpdated(function($state, callable $set) {
$record = $items->where('id', $state)->get();
$set('title', $record->title)
} )
as an example
Son of Andy
Son of AndyOP15mo ago
sorry, okay thankyou for answering my question

Did you find this page helpful?