我已经开始使用 Adobe Business Catalyst,并且正在使用 BC 生成的 Web 表单调整现有的 HTML Web 表单。即使我在Adobe 社区论坛上阅读此内容后添加了 FirstName 和 LastName 文本字段,说明这对于 Adobe CRM 是强制性的,但我仍然不断收到错误: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.
这是当前表单:
<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>
我为 FirstName 和 LastName 字段添加了值,并用 CSS 隐藏它们只是为了安抚 Adobe 必填字段。虽然还没有喜悦。有什么想法我应该调整吗?