Web Form Error Message
JohnSSmith Oct 6, 2014 4:15 AMI have a very large collection form although it only has 14 "Required fields
When I press submit, I get a new page with the following message -
ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page.
Name and email are definitely there, and I have tested every field and submitted data.
However if I enter just my name and email address, then all the other required fields are ignored.
I cut down the code to only include the fields that are important to check - same result
here it is
<script type="text/javascript" src="http://propertywealthpartners.businesscatalyst.com/CatalystScripts/ValidationFunctions.js"></script>
<script type="text/javascript">
//<![CDATA[
var submitcount75734 = 0;function checkWholeForm75734(theForm){var why = "";if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name");if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name");if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value);if (theForm.HomeAddress) why += isEmpty(theForm.HomeAddress.value, "Home Address");if (theForm.HomeCity) why += isEmpty(theForm.HomeCity.value, "Home City");if (theForm.HomeState) why += isEmpty(theForm.HomeState.value, "Home State");if (theForm.HomeZip) why += isEmpty(theForm.HomeZip.value, "Home Zipcode");if (theForm.HomeCountry) why += checkDropdown(theForm.HomeCountry.value, "Home Country");if (theForm.CellPhone) why += isEmpty(theForm.CellPhone.value, "Cell Phone Number");if (theForm.CAT_Custom_19946743) why += isEmpty(theForm.CAT_Custom_19946743.value, "Your Age");if (theForm.CAT_Custom_19946749) why += checkDropdown(theForm.CAT_Custom_19946749.value, "Marital Status");if (theForm.CAT_Custom_19946750) why += checkDropdown(theForm.CAT_Custom_19946750.value, "Living Arrangements");if (theForm.CAT_Custom_19947405) why += isEmpty(theForm.CAT_Custom_19947405.value, "What would you like to discuss at our first meeting?");if (theForm.CAT_Custom_19947406) why += isEmpty(theForm.CAT_Custom_19947406.value, "What would you like to achieve in the next 5 years.");if (theForm.CAT_Custom_19948331) why += checkDropdown(theForm.CAT_Custom_19948331.value, "Please read and consent to our use of your information as per our Privacy Statement");
if(why != ""){alert(why);return false;}if(submitcount75734 == 0){submitcount75734++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
//]]>
</script>
I checked it against another smaller form, which is working but can't see any difference between the first few lines and last lines.
