I Have a Button Called: “GetQuote” and I have a textbox Called: “Model” inside my Repeater,
the Textbox is linked The Fieldkey “model” in my dataset collection Called: “Vehicles”
Lightbox code is at the bottom /
Page Code:
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
import wixWindow from ‘wix-window’;
export function Vechicles_itemReady($item, itemData, index) {
const carfax = $item(“#carfax”);
const vin = $item(“#Vin”);
const GetQuote = $item(‘#PriceQuotebutton’)
let baseurl = “CARFAX - Unavailable”
carfax.onClick( (event) => {wixLocation.to(baseurl + vin.text);})
GetQuote.onClick((event)=>{
let $repeaterItem = $w.at(event.context);
let Model = $repeaterItem(‘#Model’).text;
wixWindow.openLightbox(“PriceQuote”, Model);
});
}
Basically I just need set whatever Model.text is to a text box Called: “QuoteVehicleModel” on my Lightbox.
My Lightbox Code:
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
import wixWindow from ‘wix-window’;
$w.onReady(() => {
let receivedData = wixWindow.lightbox.getContext();
const Model = receivedData[‘Model’]
Model.text = $w(‘#QuoteVehicleModel’).text;
});
Not Sure what I’m doing wrong Help Plzz lol