Modal / popup form over dynamic card

On Cms template page.

there are multiple cards, each card contains - card-name, desc, and request-button.

name and desc are fetched from CMS in cards.,

when the user clicks on the request-button a popup_FORM visible.

popup form → inputs → full name, email, and card-name

I want to autofill the card-name as a popupform open.

card-name on card = input card-name.

Need Help to do the last part. - AUTOFILL OF card-name IN POPUP FORM.