How to add function in button that will duplicate data to new fields

Hello everyone, I am new to Pimcore, And I’m asking for anyone who can help me to make to make this copy button work, here’s the screenshot.

I add button in my class that will copy the data from the other fields to new data fields and save to a master file format.

I’m trying to build a curation tool for users. Why?

Because I wan’t to curate first the imported dump data file to a Master file that can be used for other Ecommerce platform like Magento and Shopify. Thank you in advance!