Menu
Close

Please fill out the information below.

 

Register Today!

<form id=”spark-registration-form” action=”https://spark.re/vesta-properties/milner-heights-lattice-condos/register/registration-form” accept-charset=”UTF-8″ method=”post”><input name=”utf8″ type=”hidden” value=”✓” /><div class=”grid”>
<div class=”form-item”>
<label for=”contact_first_name”>First Name</label>
<input type=”text” name=”contact[first_name]” id=”contact_first_name” />
</div>

<div class=”form-item”>
<label for=”contact_last_name”>Last Name</label>
<input type=”text” name=”contact[last_name]” id=”contact_last_name” />
</div>

<div class=”form-item”>
<label for=”contact_email”>Email *</label>
<input type=”email” name=”contact[email]” id=”contact_email” />
</div>

<div class=”form-item”>
<label for=”contact_phone”>Phone</label>
<input type=”tel” name=”contact[phone]” id=”contact_phone” />
</div>

<div class=”form-item”>
<label for=”contact_employer”>Employer</label>
<input type=”text” name=”contact[employer]” id=”contact_employer” />
</div>

<div class=”form-item”>
<label for=”contact_job_title”>Job Title</label>
<input type=”text” name=”contact[job_title]” id=”contact_job_title” />
</div>

<div class=”form-item”>
<label for=”contact_address_line_1″>Street</label>
<input type=”text” name=”contact[address_line_1]” id=”contact_address_line_1″ />
</div>

<div class=”form-item”>
<label for=”contact_address_line_2″>Apt #, Unit, Suite</label>
<input type=”text” name=”contact[address_line_2]” id=”contact_address_line_2″ />
</div>

<div class=”form-item”>
<label for=”contact_postcode”>Postcode / Zip</label>
<input type=”text” name=”contact[postcode]” id=”contact_postcode” />
</div>

<div class=”form-item”>
<label for=”contact_city”>City</label>
<input type=”text” name=”contact[city]” id=”contact_city” />
</div>

<div class=”form-item”>
<label for=”contact_province”>Province / State</label>
<input type=”text” name=”contact[province]” id=”contact_province” />
</div>

<div class=”form-item”>
<div class=”dropdown-wrapper answer”>
<label for=”contact_country_id”>Country</label>
<select name=”contact[country_id]” id=”contact_country_id”><option value=”1″>Afghanistan</option>
<option value=”2″>Albania</option>
<option value=”3″>Algeria</option>
<option value=”4″>American Samoa</option>
<option value=”5″>Andorra</option>
<option value=”6″>Angola</option>
<option value=”7″>Anguilla</option>
<option value=”8″>Antigua and Barbuda</option>
<option value=”9″>Argentina</option>
<option value=”10″>Armenia</option>
<option value=”11″>Aruba</option>
<option value=”12″>Australia</option>
<option value=”13″>Austria</option>
<option value=”14″>Azerbaijan</option>
<option value=”15″>Bahamas</option>
<option value=”16″>Bahrain</option>
<option value=”17″>Bangladesh</option>
<option value=”18″>Barbados</option>
<option value=”19″>Belarus</option>
<option value=”20″>Belgium</option>
<option value=”21″>Belize</option>
<option value=”22″>Benin</option>
<option value=”23″>Bermuda</option>
<option value=”24″>Bhutan</option>
<option value=”25″>Bolivia</option>
<option value=”26″>Bosnia and Herzegovina</option>
<option value=”27″>Botswana</option>
<option value=”28″>Brazil</option>
<option value=”29″>Brunei Darussalam</option>
<option value=”30″>Bulgaria</option>
<option value=”31″>Burkina Faso</option>
<option value=”32″>Burundi</option>
<option value=”33″>Cambodia</option>
<option value=”34″>Cameroon</option>
<option selected=”selected” value=”35″>Canada</option>
<option value=”36″>Cape Verde</option>
<option value=”37″>Cayman Islands</option>
<option value=”38″>Central African Republic</option>
<option value=”39″>Chad</option>
<option value=”40″>Chile</option>
<option value=”41″>China</option>
<option value=”42″>Colombia</option>
<option value=”43″>Comoros</option>
<option value=”44″>Congo</option>
<option value=”45″>Congo, the Democratic Republic of the</option>
<option value=”46″>Cook Islands</option>
<option value=”47″>Costa Rica</option>
<option value=”48″>Cote D&#39;Ivoire</option>
<option value=”49″>Croatia</option>
<option value=”50″>Cuba</option>
<option value=”51″>Cyprus</option>
<option value=”52″>Czech Republic</option>
<option value=”53″>Denmark</option>
<option value=”54″>Djibouti</option>
<option value=”55″>Dominica</option>
<option value=”56″>Dominican Republic</option>
<option value=”57″>Ecuador</option>
<option value=”58″>Egypt</option>
<option value=”59″>El Salvador</option>
<option value=”60″>Equatorial Guinea</option>
<option value=”61″>Eritrea</option>
<option value=”62″>Estonia</option>
<option value=”63″>Ethiopia</option>
<option value=”64″>Falkland Islands (Malvinas)</option>
<option value=”65″>Faroe Islands</option>
<option value=”66″>Fiji</option>
<option value=”67″>Finland</option>
<option value=”68″>France</option>
<option value=”69″>French Guiana</option>
<option value=”70″>French Polynesia</option>
<option value=”71″>Gabon</option>
<option value=”72″>Gambia</option>
<option value=”73″>Georgia</option>
<option value=”74″>Germany</option>
<option value=”75″>Ghana</option>
<option value=”76″>Gibraltar</option>
<option value=”77″>Greece</option>
<option value=”78″>Greenland</option>
<option value=”79″>Grenada</option>
<option value=”80″>Guadeloupe</option>
<option value=”81″>Guam</option>
<option value=”82″>Guatemala</option>
<option value=”83″>Guinea</option>
<option value=”84″>Guinea-Bissau</option>
<option value=”85″>Guyana</option>
<option value=”86″>Haiti</option>
<option value=”87″>Holy See (Vatican City State)</option>
<option value=”88″>Honduras</option>
<option value=”89″>Hong Kong</option>
<option value=”90″>Hungary</option>
<option value=”91″>Iceland</option>
<option value=”92″>India</option>
<option value=”93″>Indonesia</option>
<option value=”94″>Iran, Islamic Republic of</option>
<option value=”95″>Iraq</option>
<option value=”96″>Ireland</option>
<option value=”97″>Israel</option>
<option value=”98″>Italy</option>
<option value=”99″>Jamaica</option>
<option value=”100″>Japan</option>
<option value=”101″>Jordan</option>
<option value=”102″>Kazakhstan</option>
<option value=”103″>Kenya</option>
<option value=”104″>Kiribati</option>
<option value=”105″>Korea, Democratic People&#39;s Republic of</option>
<option value=”106″>Korea, Republic of</option>
<option value=”107″>Kuwait</option>
<option value=”108″>Kyrgyzstan</option>
<option value=”109″>Lao People&#39;s Democratic Republic</option>
<option value=”110″>Latvia</option>
<option value=”111″>Lebanon</option>
<option value=”112″>Lesotho</option>
<option value=”113″>Liberia</option>
<option value=”114″>Libyan Arab Jamahiriya</option>
<option value=”115″>Liechtenstein</option>
<option value=”116″>Lithuania</option>
<option value=”117″>Luxembourg</option>
<option value=”118″>Macao</option>
<option value=”119″>Macedonia, the Former Yugoslav Republic of</option>
<option value=”120″>Madagascar</option>
<option value=”121″>Malawi</option>
<option value=”122″>Malaysia</option>
<option value=”123″>Maldives</option>
<option value=”124″>Mali</option>
<option value=”125″>Malta</option>
<option value=”126″>Marshall Islands</option>
<option value=”127″>Martinique</option>
<option value=”128″>Mauritania</option>
<option value=”129″>Mauritius</option>
<option value=”130″>Mexico</option>
<option value=”131″>Micronesia, Federated States of</option>
<option value=”132″>Moldova, Republic of</option>
<option value=”133″>Monaco</option>
<option value=”134″>Mongolia</option>
<option value=”135″>Montserrat</option>
<option value=”136″>Morocco</option>
<option value=”137″>Mozambique</option>
<option value=”138″>Myanmar</option>
<option value=”139″>Namibia</option>
<option value=”140″>Nauru</option>
<option value=”141″>Nepal</option>
<option value=”142″>Netherlands</option>
<option value=”143″>Netherlands Antilles</option>
<option value=”144″>New Caledonia</option>
<option value=”145″>New Zealand</option>
<option value=”146″>Nicaragua</option>
<option value=”147″>Niger</option>
<option value=”148″>Nigeria</option>
<option value=”149″>Niue</option>
<option value=”150″>Norfolk Island</option>
<option value=”151″>Northern Mariana Islands</option>
<option value=”152″>Norway</option>
<option value=”153″>Oman</option>
<option value=”154″>Pakistan</option>
<option value=”155″>Palau</option>
<option value=”156″>Panama</option>
<option value=”157″>Papua New Guinea</option>
<option value=”158″>Paraguay</option>
<option value=”159″>Peru</option>
<option value=”160″>Philippines</option>
<option value=”161″>Pitcairn</option>
<option value=”162″>Poland</option>
<option value=”163″>Portugal</option>
<option value=”164″>Puerto Rico</option>
<option value=”165″>Qatar</option>
<option value=”166″>Reunion</option>
<option value=”167″>Romania</option>
<option value=”168″>Russian Federation</option>
<option value=”169″>Rwanda</option>
<option value=”170″>Saint Helena</option>
<option value=”171″>Saint Kitts and Nevis</option>
<option value=”172″>Saint Lucia</option>
<option value=”173″>Saint Pierre and Miquelon</option>
<option value=”174″>Saint Vincent and the Grenadines</option>
<option value=”175″>Samoa</option>
<option value=”176″>San Marino</option>
<option value=”177″>Sao Tome and Principe</option>
<option value=”178″>Saudi Arabia</option>
<option value=”179″>Senegal</option>
<option value=”180″>Seychelles</option>
<option value=”181″>Sierra Leone</option>
<option value=”182″>Singapore</option>
<option value=”183″>Slovakia</option>
<option value=”184″>Slovenia</option>
<option value=”185″>Solomon Islands</option>
<option value=”186″>Somalia</option>
<option value=”187″>South Africa</option>
<option value=”188″>Spain</option>
<option value=”189″>Sri Lanka</option>
<option value=”190″>Sudan</option>
<option value=”191″>Suriname</option>
<option value=”192″>Svalbard and Jan Mayen</option>
<option value=”193″>Swaziland</option>
<option value=”194″>Sweden</option>
<option value=”195″>Switzerland</option>
<option value=”196″>Syrian Arab Republic</option>
<option value=”197″>Taiwan, Province of China</option>
<option value=”198″>Tajikistan</option>
<option value=”199″>Tanzania, United Republic of</option>
<option value=”200″>Thailand</option>
<option value=”201″>Togo</option>
<option value=”202″>Tokelau</option>
<option value=”203″>Tonga</option>
<option value=”204″>Trinidad and Tobago</option>
<option value=”205″>Tunisia</option>
<option value=”206″>Turkey</option>
<option value=”207″>Turkmenistan</option>
<option value=”208″>Turks and Caicos Islands</option>
<option value=”209″>Tuvalu</option>
<option value=”210″>Uganda</option>
<option value=”211″>Ukraine</option>
<option value=”212″>United Arab Emirates</option>
<option value=”213″>United Kingdom</option>
<option value=”214″>United States</option>
<option value=”215″>Uruguay</option>
<option value=”216″>Uzbekistan</option>
<option value=”217″>Vanuatu</option>
<option value=”218″>Venezuela</option>
<option value=”219″>Viet Nam</option>
<option value=”220″>Virgin Islands, British</option>
<option value=”221″>Virgin Islands, U.s.</option>
<option value=”222″>Wallis and Futuna</option>
<option value=”223″>Western Sahara</option>
<option value=”224″>Yemen</option>
<option value=”225″>Zambia</option>
<option value=”226″>Zimbabwe</option></select>
</div>
</div>

<div class=”col-xs-12″>
<div class=”dropdown-wrapper answer”>
<label for=”contact_contact_preference”>Contact Preference</label>
<select name=”contact[contact_preference]” id=”contact_contact_preference”><option value=”Any”>Any</option>
<option value=”Email”>Email</option>
<option value=”Phone”>Phone</option>
<option value=”Work”>Work</option>
<option value=”Phone”>Phone</option>
<option value=”Agent”>Agent</option>
<option value=”Text Message”>Text Message</option></select>
</div>
</div>
</div><div class=’answers row’>
<label for=”Do_you_currently…”>Do you currently…</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[3308][answers]” id=”answers_3308″ class=”false”><option value=””>Select</option><option value=”Own”>Own</option>
<option value=”Rent”>Rent</option>
<option value=”Other”>Other</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”What_is_your_age_range_”>What is your age range?</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[3305][answers]” id=”answers_3305″ class=”false”><option value=””>Select</option><option value=”Under 25″>Under 25</option>
<option value=”26 – 29″>26 – 29</option>
<option value=”30 – 34″>30 – 34</option>
<option value=”35 – 39″>35 – 39</option>
<option value=”40 – 44″>40 – 44</option>
<option value=”45 – 49″>45 – 49</option>
<option value=”50 – 54″>50 – 54</option>
<option value=”55 plus”>55 plus</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”Are_you_working_with_a_Realtor___”>Are you working with a realtor? *</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[3306][answers]” id=”answers_3306″ class=”false”><option value=””>Select</option><option value=”Yes”>Yes</option>
<option value=”No”>No</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”What_is_your_price_range_”>What is your price range?</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[3307][answers]” id=”answers_3307″ class=”false”><option value=””>Select</option><option value=”$400,000 – $449,999″>$400,000 – $449,999</option>
<option value=”$450,000 – $499,999″>$450,000 – $499,999</option>
<option value=”$500,000 – $549,999″>$500,000 – $549,999</option>
<option value=”$550,000 – $599,999″>$550,000 – $599,999</option>
<option value=”$600,000 – $649,999″>$600,000 – $649,999</option>
<option value=”$650,000 – $699,999″>$650,000 – $699,999</option>
<option value=”Over $700,000″>Over $700,000</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”How_did_you_hear_about_us___”>How did you hear about us? *</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[3227][answers]” id=”answers_3227″ class=”false”><option value=””>Select</option><option value=”Cloverdale Local Paper”>Cloverdale Local Paper</option>
<option value=”Langley Local Paper”>Langley Local Paper</option>
<option value=”Surrey Local Paper”>Surrey Local Paper</option>
<option value=”New Home Buyers Guide Magazine”>New Home Buyers Guide Magazine</option>
<option value=”Real Estate Weekly”>Real Estate Weekly</option>
<option value=”The Province”>The Province</option>
<option value=”Vancouver Sun”>Vancouver Sun</option>
<option value=”Westcoast Homes &amp; Designs”>Westcoast Homes &amp; Designs</option>
<option value=”Drive-by/Signage”>Drive-by/Signage</option>
<option value=”Email”>Email</option>
<option value=”Family Friends”>Family Friends</option>
<option value=”Internet Research”>Internet Research</option>
<option value=”Mail”>Mail</option>
<option value=”MLS”>MLS</option>
<option value=”Other”>Other</option>
<option value=”Radio”>Radio</option>
<option value=”Realtor”>Realtor</option>
<option value=”Facebook”>Facebook</option>
<option value=”Website”>Website</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”Confirm_you_would_like_to_receive_updates_from_Vesta_Properties”>Confirm you would like to receive updates from vesta properties</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[3318][answers]” id=”answers_3318″ class=”false”><option value=””>Select</option><option value=”Yes”>Yes</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”Which_rental_apartment_would_best_suit_you____”>Which rental apartment would best suit you? *</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[3428][answers]” id=”answers_3428″ class=”false”><option value=””>Select</option><option value=”1 bedroom”>1 bedroom</option>
<option value=”1 bedroom + den”>1 bedroom + den</option>
<option value=”2 bedroom”>2 bedroom</option>
<option value=”2 bedroom + den”>2 bedroom + den</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”Home_Selection__1_-_Floor_Number”>Home selection #1 – floor number</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[4106][answers]” id=”answers_4106″ class=”false”><option value=””>Select</option><option value=”2″>2</option>
<option value=”3″>3</option>
<option value=”4″>4</option>
<option value=”5″>5</option>
<option value=”6″>6</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”Home_Selection__1_-_Suite_Number”>Home selection #1 – suite number</label>
<div class=”answer”><textarea name=”answers[4107][answers]” id=”answers_4107″ class=”ignore”>
</textarea></div>
</div>
<div class=’answers row’>
<label for=”Home_Selection__2_-_Floor_Number”>Home selection #2 – floor number</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[4108][answers]” id=”answers_4108″ class=”false”><option value=””>Select</option><option value=”2″>2</option>
<option value=”3″>3</option>
<option value=”4″>4</option>
<option value=”5″>5</option>
<option value=”6″>6</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”Home_Selection__2_-_Suite_Number”>Home selection #2 – suite number</label>
<div class=”answer”><textarea name=”answers[4109][answers]” id=”answers_4109″ class=”ignore”>
</textarea></div>
</div>
<div class=’answers row’>
<label for=”Home_Selection__1_-_Home_Type”>Home selection #1 – home type</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[4111][answers]” id=”answers_4111″ class=”false”><option value=””>Select</option><option value=”1 Bed + 1 Bath – Plan F”>1 Bed + 1 Bath – Plan F</option>
<option value=”1 Bed + Flex + 1 Bath – Plan B/B1/D/E”>1 Bed + Flex + 1 Bath – Plan B/B1/D/E</option>
<option value=”2 Bed + Flex + 2 Bath – Plan A/C/C1″>2 Bed + Flex + 2 Bath – Plan A/C/C1</option>
<option value=”2 Bed + 2 Bath – Plan G”>2 Bed + 2 Bath – Plan G</option>
<option value=”2 Bed + 1 Bath – Plan G1″>2 Bed + 1 Bath – Plan G1</option>
<option value=”3 Bed + Flex + 2 Bath – Plan C2/C2A”>3 Bed + Flex + 2 Bath – Plan C2/C2A</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”Home_Selection__2_-_Home_Type”>Home selection #2 – home type</label>
<div class=’dropdown-wrapper’>
<div class=”answer”><select name=”answers[4112][answers]” id=”answers_4112″ class=”false”><option value=””>Select</option><option value=”1 Bed + 1 Bath – Plan F”>1 Bed + 1 Bath – Plan F</option>
<option value=”1 Bed + Flex + 1 Bath – Plan B/B1/D/E”>1 Bed + Flex + 1 Bath – Plan B/B1/D/E</option>
<option value=”2 Bed + Flex + 2 Bath – Plan A/C/C1″>2 Bed + Flex + 2 Bath – Plan A/C/C1</option>
<option value=”2 Bed + 2 Bath – Plan G”>2 Bed + 2 Bath – Plan G</option>
<option value=”2 Bed + 1 Bath – Plan G1″>2 Bed + 1 Bath – Plan G1</option>
<option value=”3 Bed + Flex + 2 Bath – Plan C2/C2A”>3 Bed + Flex + 2 Bath – Plan C2/C2A</option></select></div>
</div>
</div>
<div class=’answers row’>
<label for=”Realtor_Name”>Realtor name</label>
<div class=”answer”><textarea name=”answers[4113][answers]” id=”answers_4113″ class=”ignore”>
</textarea></div>
</div>
<div class=’answers row’>
<label for=”Realtor_Brokerage”>Realtor brokerage</label>
<div class=”answer”><textarea name=”answers[4114][answers]” id=”answers_4114″ class=”ignore”>
</textarea></div>
</div>
<div class=’answers row’>
<label for=”Realtor_Phone”>Realtor phone</label>
<div class=”answer”><textarea name=”answers[4115][answers]” id=”answers_4115″ class=”ignore”>
</textarea></div>
</div>
<div class=’answers row’>
<label for=”Realtor_Email”>Realtor email</label>
<div class=”answer”><textarea name=”answers[4116][answers]” id=”answers_4116″ class=”ignore”>
</textarea></div>
</div><div class=”Agent” style=”overflow: hidden;”>
<table align=”left” border=”0″ cellpadding=”0″ cellspacing=”0″ class=”responsive-table” width=”50%”>
<tbody>
<tr>
<td align=”left” class=”agent-widget”>
<div class=”agent-multi-wrapper dropdown-wrapper answer”>
<label class=”label-text” for=”Agent”>Are you an Agent?</label>
<select name=”agent” id=”agent”>
<option value=”false”>No</option>
<option value=”true”>Yes</option>
</select>
</div>
</td>
</tr>
</tbody>
</table>
<table align=”right” border=”0″ cellpadding=”0″ cellspacing=”0″ class=”responsive-table” id=”hidden-agent” width=”50%”>
<tbody>
<tr>
<td align=”left” class=”agent-widget”>
<div class=”agent-multi-wrapper”>
<label class=”label-text” for=”brokerage_employer”>Employer/Brokerage</label>
<input type=”text” name=”contact[brokerage_name]” id=”contact_brokerage_name” data-enhance=”false” style=””>
</div>
</td>
</tr>
</tbody>
</table>
</div><div class=”form-item”>
<label for=”contact_comments”>Comments or Questions</label>
<textarea placeholder=”Additional comments or questions” rows=”5″ class=”ignore” data-enhance=”false” name=”contact[comments]” id=”contact_comments”>
</textarea>
</div><a onclick=”submitRegistrationForm(this);” class=”button submit” style=”color: #fff;” href=”javascript:void(0);”>Register with Milner Heights Lattice Condos</a><input type=”hidden” name=”source” id=”source” value=”Lattice Condos Registration” /><input type=”hidden” name=”redirect_success” id=”redirect_success” value=”https://www.vestaproperties.com/thank-you/” /><input type=”hidden” name=”redirect_error” id=”redirect_error” value=”” /><input type=”text” name=”are_you_simulated” id=”are_you_simulated” placeholder=”Leave this field blank” /><script>

window.onload = function() {
// Hides spam trap
document.getElementById(“are_you_simulated”).style.display = “none”;

// Hides Employer/Brokerage field at the start
hideBrokerageEmployer();
}

var submitting = false;
var agentField = document.getElementById(“agent”);

function hideBrokerageEmployer() {
if (agentField === null) { return };
if (agentField.options[agentField.selectedIndex].text == “No”) {
document.getElementById(“hidden-agent”).style.display = “none”;
} else {
document.getElementById(“hidden-agent”).style.display = “table”;
}
}

// Show/Hides Brokerage/Employer field based on Yes/No selection.
if (agentField) {
document.getElementById(“agent”).onchange = function() {
hideBrokerageEmployer();
}
}

function submitRegistrationForm(element) {
var form = document.querySelector(“body#spark-registration-form form, form#spark-registration-form”);
var missing = “”;
var required = { contact_email: “Email” };
var customRequired = document.querySelectorAll(“input:required, textarea:required, select:required”);
var questionsRequired = {answers_3306: ‘Are you working with a Realtor?’, answers_3227: ‘How did you hear about us?’, answers_3428: ‘Which rental apartment would best suit you? ‘};

// Adds custom required inputs to the ‘required’ object
for (var i = 0; i < customRequired.length; i++) {
required[customRequired[i].id] = customRequired[i].parentNode.firstElementChild.innerHTML.replace(“*”, “”);
}

// Adds required question inputs to the ‘required’ object
for (var key in questionsRequired) {
required[key] = questionsRequired[key];
}

// Iterates through required fields and adds any that have
// not been populated to ‘missing’ list
for (var key in required) {
var elements = Array.from(document.querySelectorAll(“[id^='”+ key + “‘]”));

if (elements.length > 0) {
var missing_field = true;

elements.forEach(function (el) {
if ((el.length < 1) || (el &&
((el.type == “checkbox” && el.checked) ||
(el.type == “radio” && el.checked) ||
((el.type != “radio” && el.type != “checkbox”) && el.value) ||
(document.getElementById(key + “_other_text”) && document.getElementById(key + “_other_text”).value)))) {
missing_field = false;
}
});

if (missing_field) {
missing += “- “+ required[key] + “\r\n”
}
}
}

// Tests email input value against RFC 5322 Official Standard Email Regex
var email = document.getElementById(“contact_email”).value;
if (!/(?:[a-z0-9!#$%&’*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&’*+/=?^_`{|}~-]+)*|”(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*”)@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/.test(email)) {
missing += “- Email is invalid\r\n”;
}

if (missing != “”) { alert(“The following fields are incomplete:\r\n”+ missing); return false; }

// Prevents duplicate submissions
if (submitting) { return false; }
submitting = true

form.submit();
}
</script></form>

Register with Lattice Condos