+ Start a Discussion

LWC Copy a record multiple times

I have been working on a cloning process where the user selects a number and then uses a row action to copy a record x number of times from my structures__c custom object. I have the process to copy the record into an array the number of times selected and I pass that array to a child component. I am now trying to figure out the best way to: 1. display the list of records on the page as input fields 2. convert what is not a general array into the correct object and then save the records.
I originally tried to use a for:each around the array with a lightning-record-edit-form inside. However, this displays individual forms with buttons for each form. I would like to display rows with a button to save. Any advise on how to do that and also how I convert this general array to be that of my custom object would be greatly appreciated. thanks!!