Upon successful insertion of a new entry into a database collection, I would like to have the Submit button 2) update the data and then 2) link to a POPUP window… "Thank You, your entry has been submitted…bla, bla bla, with a Close Button that links to the Home Page.
Hay cwvega76,
You can do so using code. Have an onClick button event (do not connect the button to the dataset). Call the dataset save function, wait for the save to complete and then use the API to open a lightbox.
This will look like the following -
import wixWindow from 'wix-window';
export async function BUTTON1_onClick() {
await $w('#DATASET1').save();
wixWindow.openLightbox('LIGHTBOX NAME');
}
can u show the full code?