Contact Us

BLOGS

Welcome to
"United Solicitors"

document.addEventListener("DOMContentLoaded", function() { const form = document.querySelector('form.wpforms-form'); // WPForms form selector const textField = form.querySelector('textarea[name="your_text_field_name"]'); // Adjust if Single Line Text // For Single Line Text use: // const textField = form.querySelector('input[name="your_text_field_name"]'); form.addEventListener("submit", function(event) { if (textField.value.length < 100) { alert("Please enter at least 100 characters."); event.preventDefault(); // Prevent form submission } }); });