Home 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('email-form');
Bound to this snippet of code:
// replace with your Webflow Error Message Div Block ID here.
let failureMessage = document.getElementById('error-message');
Bound to this snippet of code:
// replace with your Webflow Success Message Div Block ID here.
let successMessage = document.getElementById('success-message');