Here is the article https://experienceleague.adobe.com/docs/experience-manager-learn/forms/zipping-form-attachments/introduction.html you will need to make changes to the code to rename the attachments as per your requirements
https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-questions/copy-data-from-one-table-cell-to-another-table-cell-problem/m-p/300931 was this the solution that worked for you