Setting an input value from outside the repeater?
I need to set some input's values from outside the repeater using afterStateUpdated but I can not get to them . I know that from inside I should add ../../
2 Replies
Show some code please
Section::make()->schema([
Select::make('client_id')->live()
->label('Client')
->relationship('client', 'raison_social')->afterStateUpdated(function ($set) {
// Set the input field montant which is inseide the repeater to null
$set('montant', null);
// Set the input field tva which is inseide the repeater to null
$set('tva', null);
// Set the input field unit_price which is inseide the repeater to null
$set('unit_price', null);
// Set the input field items which is inseide the repeater to null
$set('items', null);
}),