I would like to take a product name and store it in a lightbox form

Hello,

I am currently having trouble figuring this out. I want to take a product name from its page and store it an a variable. On the product page, there is a button that when clicked, opens a light box with a form. I want to take productName and store into one on the input fields. How do I go on doing this? Also, if possible, I would like that field to not be editable.

Step 1


Step 2

If you are wanting to pass info from a page to a lightbox or from a lightbox to a page, then have a look at the Wix Window API and the lightbox functions of getContext, openLightbox and close here.
https://www.wix.com/corvid/reference/wix-window.lightbox.html

If you scroll down the page yu will find code examples of how to pass that data back and forth etc.

Well, I figured out how to save the product name. I’ll take at the link you sent me.

I got it to work. Thanks.