Hi,
Kindly us to pass data from repeater to textbox lightbox
we have repeater with some data like code / name / price/ with inquiry click
we want that is customer click on inquiry button , all above data will pass to text box available on wix light which open on click event on inquiry button ,
Help to rectify this below code if any one new code in simple way better i am too much expert in this
Code on Inquiry Button,
export function button14_click ( event ) {
// This function was added from the Properties & Events panel. To learn more, visit Velo: Working with the Properties & Events Panel | Help Center | Wix.com
// Add your code for this event here:
$w ( ‘#repeater9’ ). onItemReady ( ( $item , itemData , index ) => {
$item ( ‘#button14’ ). onClick ( ( event ) => {
let pn = $item ( ‘#text111’ ). text ;
wixWindow . openLightbox ( “Inquiry” , pn );
});
});
};
Code on Light box load
$w . onReady ( function () {
**let** records = wixWindow . lightbox . getContext ();
**let** pn = records . pn ;
$w ( '#text99' ). text = pn . toLocaleString ();
})