document.addEventListener('bricks/form/submit', function(event) {
// Access the element ID
const elementId = event.detail.elementId;
// Access the form data
const formData = event.detail.formData;
// Perform actions using elementId and formData
if (elementId === 'wdyvkm') {
console.log(1);
} else if (elementId === 'qkcjcd') {
console.log(2);
} else {
console.log('Element ID:', elementId);
console.log('Form Data:', formData);
}
// You can now work with the elementId and formData in your event handler
});