Name
Address
e.g., flooding, leak, burst pipe
e.g., basement, living room, roofroof
e.g., house, apartment, commercial
Do you have insurance coverage for water damage?
This field is for validation purposes and should be left unchanged.
document.addEventListener('DOMContentLoaded', function() { jQuery(document).on('gform_pre_submission', function(event, formId) { const targetFormIds = [17, 7, 6, 10, 12, 16, 8, 9, 18, 11, 13, 14]; if (targetFormIds.includes(formId)) { const blockedWords = [ "job", "hire", "alabama", "alaska", "arizona", "arkansas", "california", "colorado", "connecticut", "delaware", "florida", "georgia", "hawaii", "idaho", "illinois", "indiana", "iowa", "kansas", "kentucky", "louisiana", "maine", "maryland", "michigan", "minnesota", "mississippi", "missouri", "montana", "nebraska", "nevada", "new hampshire", "new jersey", "new mexico", "new york", "north carolina", "north dakota", "ohio", "oklahoma", "oregon", "pennsylvania", "rhode island", "south carolina", "south dakota", "tennessee", "texas", "utah", "vermont", "virginia", "washington", "west virginia", "wisconsin", "wyoming", "al", "ak", "az", "ar", "ca", "co", "ct", "de", "fl", "ga", "hi", "id", "il", "in", "ia", "ks", "ky", "la", "me", "md", "mi", "mn", "ms", "mo", "mt", "ne", "nv", "nh", "nj", "nm", "ny", "nc", "nd", "oh", "ok", "or", "pa", "ri", "sc", "sd", "tn", "tx", "ut", "vt", "va", "wa", "wv", "wi", "wy" ]; const messageField = jQuery(`#input_${formId}_1`).val().toLowerCase(); const containsBlockedWord = blockedWords.some(word = messageField.includes(word)); if (containsBlockedWord) { alert("Your message contains restricted words or locations outside Massachusetts."); return false; } } }); });