top of page

COMO AUTOCOMPLETAR FORMULARIO

Hey! NUEVO VIDEO. En este video, aprenderás como autocompletar un formulario usando Velo Code. No olvides subscribirte y comentar alguna pregunta!


CODIGO PARA CADA LIGHTBOX Y PÁGINA DINÁMICA

 

Lightbox code import wixWindow from 'wix-window'; $w.onReady(function () { let receivedData = wixWindow.lightbox.getContext(); console.log('data', receivedData); $w("#productname").text = receivedData.productname; $w("#dataset1").onBeforeSave(() => { $w("#dataset1").setFieldValue("product", $w("#productname").text); return true; }) });



 

Dynamic page code import wixWindow from 'wix-window'; $w.onReady(function () { let itemObj = $w("#dynamicDataset").getCurrentItem(); $w("#btnQuote").onClick(() => { wixWindow.openLightbox("quote", { "productname": itemObj.title, }) .then((data) => { console.log('enviado') }); }) });



 

Gracias por ver el vídeo! #tutorial #velo #wix #español

30 views2 comments

Recent Posts

See All
bottom of page