@yourdomain.com with your desired domain.To ensure that your Webflow form submissions are validated for a specific domain ending in email addresses, you will need to add a custom code snippet to your Webflow project.
```javascript
<script>
document.addEventListener('DOMContentLoaded', function() {
const form = document.querySelector('form');
if (form) {
form.addEventListener('submit', function(event) {
const emailField = form.querySelector('input[type="email"]');
const emailPattern = /.+@yourdomain.com$/;
if (emailField && !emailPattern.test(emailField.value)) {
event.preventDefault();
alert('Please enter a valid email address ending with @yourdomain.com');
}
});
}
});
</script>
```
@yourdomain.com with the domain ending you want to validate against.
To validate email submissions for a specific domain in Webflow, add a JavaScript snippet in the project settings that checks the email pattern during form submission. Customize the domain ending within the code, then save, publish, and test your site.