Copy a slider Value to a Textbox in a lightbox

Hello,
I try to copy a value of a slider which my visitors us and paste it in a textbox which is located in a lightbox. So kind of a duplicate of the value of the slider but just located somewhere else

Can you show me how its done?

Thanks you!

First of all how have you done the slider? If you want to take values from elements use the $w(“#elementId”).value for example. Then when you open a lightbox in Wix Code you can send a context to that lightbox. Send in that value as the context for the lightbox. Then in the onReady code in the Lightbox use the getContext function to get that value from the parent page.

Read all about it in the Wix Code Api Reference Pages about wixWindow and Lightboxes.