Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

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 👆just be aware that this is the line of code that binds to the above screenshot. You'll need to make sure you add a full and valid url to that field in the Webflow Designer.

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');