Contact  for a tailored solution.

Send us a message

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Get in touch today

Let's build data-driven campaigns that deliver measurable business growth.

Contact information

Email Icon
Email:
info@croyanceventures.com
Phone Icon
Phone:
(+91) 7840002709
Check - Elements Webflow Library - BRIX Templates

Thank you

Thanks for reaching out. We will get back to you soon.
Oops! Something went wrong while submitting the form.
document.addEventListener('DOMContentLoaded', function () { const form = document.querySelector('.w-form form'); const submitBtn = form.querySelector('input[type="submit"], button[type="submit"]'); submitBtn.addEventListener('click', function (e) { e.preventDefault(); e.stopPropagation(); let hasError = false; // All required fields should be checked const fields = form.querySelectorAll('input[required], textarea[required], select[required]'); fields.forEach(function (field) { // First remove old error field.style.borderColor = ''; const oldError = field.parentNode.querySelector('.custom-error-msg'); if (oldError) oldError.remove(); if (!field.value.trim()) { hasError = true; // Red border field.style.borderColor = 'red'; // Create error message const errorMsg = document.createElement('div'); errorMsg.className = 'custom-error-msg'; errorMsg.style.color = 'red'; errorMsg.style.fontSize = '12px'; errorMsg.style.marginTop = '4px'; errorMsg.textContent = 'This field is required'; field.parentNode.appendChild(errorMsg); } }); // If everything filled then submit the form if (!hasError) { form.submit(); } }); });