F
Filament13mo ago
tuyz

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
toeknee13mo 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
tuyz
tuyzOP13mo ago
sorry, okay thankyou for answering my question
Want results from more Discord servers?
Add your server