I can see just two, i d love to see
- A custom message appears on the same page
- e-mail notification (to user and to me)
Currently all my visitors get the e-mail when they submit a wix form. I set it with the wix app “automated e-mails”. If I replace the old wix form with new form will it still work?
2 Likes
Hi Olya,
+1 on your suggestions.
We don’t yet support either in an automatic way, but as with a lot of things - you can get around it with JavaScript code. The way to do this would be to listen for the OnAfterSave event of the dataset.
Here’s how you would use that to show an element (in this case I chose a box, but it could be any element on the page):
$w.onReady(function () {
$w('#dataset1').onAfterSave(()=>{
$w('#afterSaveBox').show();
});
});
And here’s how you would use it to show a lightbox (to get a pop-up effect)
import wixWindow from "wix-window";
$w.onReady(function () {
$w('#dataset1').onAfterSave(()=>{
wixWindow.openLightbox('my lightbox');
});
});
As for sending an email on form submission, Yoav has already answered a similar question here:
I was looking for these same two options you mentioned as well
- A custom message appears on the same page
- e-mail notification (to user and to me)