Confirm page: Binding Webflow page elements to the custom Javascript code
Bound to this snippet of code:
// replace with your form ID
const form = document.getElementById('confirm-form');
Bound to this snippet of code:
window.location.assign(event.srcElement.dataset.redirect + data.slug);
You don't need to change anything in the code
For example:
https://email-confirmable.webflow.io/confirmed/
Which is the url to your CMS Collection Page. Also...notice the trailering /
this is required as the redirect will fail without it.
Bound to this snippet of code:
// set the Webflow Error Message Div Block ID to 'error-message'
let failureMessage = document.getElementById('error-message');
Bound to this snippet of code:
// set the Webflow Success Message Div Block ID to 'success-message'
let successMessage = document.getElementById('success-message');