Action to Fill New Record Form with Old Data

Hi eveyone! I am creating a resource that sometimes require redundant fields from an earlier saved resource of the same time. Is there a way to fetch old data from a specific record (based on user input) and fill the current form with that data? Thanks.
Solution
For future reference and anyone else searching just use $livewire in a function and use $livewire->form->fill($data). It will fill whole form.
Was this page helpful?