I have started using Adobe Business Catalyst and I am adjusting an existing HTML web form with the web form generated by BC. Even though I added a FirstName and LastName text field after reading this at the Adobe Community Forums stating this is mandatory for the Adobe CRM I still keep on getting errors: 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.
Here is the current form:
<form name="catwebformform81533" method="post" onsubmit="return checkWholeForm81533(this)"
enctype="multipart/form-data" action="http://domain.businesscatalyst.com/FormProcessv2.aspx?WebFormID=74594&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}" id="form">
<div class="span4">
<input type="text" name="FirstName" id="FirstName" class="cat_textbox" maxlength="255" value="ingevuld"/>
<input type="text" name="LastName" id="LastName" class="cat_textbox" maxlength="255" value="ingevuld" />
<div class="field">
<label>Name:</label>
<input type="text" name="name" value="" id="name"/>
</div>
<div class="field">
<label>Email:</label>
<input type="text" name="email" value="" id="email" />
</div>
<div class="field">
<label>Subject:</label>
<input type="text" name="subject" value="" name="CAT_Custom_343661" id="CAT_Custom_343661" />
</div>
</div>
<div class="span4">
<div class="field">
<label>Message:</label>
<textarea rows="7" name="CAT_Custom_343660" id="CAT_Custom_343660"
onkeydown="if(this.value.length>=4000)this.value=this.value.substring(0,3999);"></textarea>
</div>
<div class="field">
{module_recaptcha}
</div>
<div class="submitbutton clearfix">
<input type="submit" value="Send Your Message" class="m-btn red rnd right"/>
</div>
</div>
<script type="text/javascript" src="http://domain.businesscatalyst.com/CatalystScripts/ValidationFunctions.js">
</script><script type="text/javascript">
//<![CDATA[
var submitcount81533 = 0;function checkWholeForm81533(theForm){var why = "";
if (theForm.email) why += checkEmail(theForm.email.value);
if (theForm.CAT_Custom_343661) why += isEmpty(theForm.CAT_Custom_343661.value, "Subject");
if (theForm.CAT_Custom_343660) why += isEmpty(theForm.CAT_Custom_343660.value, "Message");
if(why != ""){alert(why);return false;}if(submitcount81533 == 0){submitcount81533++;
theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
//]]>
</script>
</form>
I have added values for the FirstName and LastName field and hid them with CSS just to appease Adobe mandatory fields. No joy yet though. Any ideas what I should adjust?