Form Action to save record, collapse parent repeater item and open next repeater item

A user will see a bunch of collapsed repeaters. They should be able to open any repeater to add some info and click next inside the open repeater which should save the current state of the form, collapse the current repeater and open the next repeater if there is one. Is this possible using form actions? I currently have the following which saves the form inside any repeater: Repeater::make('items')->relationship()->schema([ TextInput::make('info'), Actions::make([ Action::make('save')->submit('save') ]), ])->collapsed() Could I have an action which handles the save and collapse/open of the repeaters?
1 Reply
martin-ro
martin-ro12mo ago
I'm trying something similar... did you find a solution?
Want results from more Discord servers?
Add your server