Classic form Javascript API
The classic forms provides a Javascript API for custom integrations.
The classic form is a older form product, We are moving to multistep forms for lead collection. Please refer to the documentation of the multistep form submit if you are using multistep!
Using custom Javascript is a advance feature which can impact the working of your site, use with caution!
Use the following Javascript snippet to access the form-submit event with inputs:
window.addEventListener('apSubmitForm', function (event) {
console.log(event.detail.formData); // event.detail.formData will be a object with key the input ID and value the input VALUE entered
});
Updated on: 05/02/2024
Thank you!