Adding custom terms & conditions

Hey Guys!
I need some help again…:confused:
So I made our custom form, now we need the following:
After the customer clicks on the “submission/send” button (the form contains sensitive private data) Two things must come to the screen:
-GDPR policy would be nice if the checbox was on the bottom of the page

  • Terms and conditions, it must pop up, and the chechbox should be on the bottom

After these the customer should get a confirmation email.

I would seriously appreciate any kind of help. Without the functions above we won’t be able to run the site. I’m havily beginner in coding, so a tutorial would be very useful.

Thank you in advance!!

You can use an onAfterSave():
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#onAfterSave
inside the onAfterSave, put a line to open the terms&conditions lightbox:
https://www.wix.com/corvid/reference/wix-window.html#openLightbox
Enable the approval button ($w("#button).enable() ) if the checkbox is checked:
https://www.wix.com/corvid/reference/$w.Checkbox.html#onChange
https://www.wix.com/corvid/reference/$w.Checkbox.html#checked

Hello J.D.!

Thank you! :slight_smile: I’n not a coder, so it’s quite hard to understand. Can you maybe make me a short step by step tutorial? Is it possible to open 2 lightboxes after each other?

Thanks in advance!

I’m not familiar with Corvid tutorials. Maybe someone else will be able to help.
And for your last question: Yes, it’s possible if you use code.