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
dissto
dissto10mo ago
Show some code please
Souhail Bouaouiss
Souhail BouaouissOP10mo ago
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); }),
Want results from more Discord servers?
Add your server