One Submit Button going to one of 2 pages

Hi guys, I’m trying to create a landing page where based on the respones to checkboxes when they hit submit it will take them to either a ‘success’ - you qualify page or a ‘fail’ - Sorry you don’t currently qualify but here are some options page.

Does anyone know any code that can be written to achieve this based on the checkbox being ticked or not?

Cheers, Matt

Hey

if ($w(“#checkbox1”).checked) {
  wixLocation.to(“url to go to”);
}

If checkbox1 is ticked redirect user. By using this you can get on coding.

if you have more just add || between conditions for OR and && for AND.