2014-07-21 2 views
0

Adobe Business Catalyst를 사용하기 시작했으며 BC에서 생성 한 웹 양식을 사용하여 기존 HTML 웹 양식을 조정하고 있습니다. 여기 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. 현재 양식입니다 : 내가 알리는 Adobe Community Forums에서이 글을 읽고 후 이름 및 성 텍스트 필드를 추가하더라도 이것이 내가 아직도 점점 오류가 계속 어도비 CRM을위한 필수입니다비즈니스 Catalyst 웹 양식 오류

<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 필드를 사용하고 Adobe 필수 필드를 달래기 위해 CSS로 숨 깁니다. 아직 기쁨이 없습니다. 어떤 아이디어를 조정해야합니까? 내가 그 필드의 전자 메일 주소에 대한 ID와 이름 변경했다처럼

답변

1

보인다 :이 검증와 함께

<input type="text" name="EmailAddress" value="" id="EmailAddress" /> 

script type="text/javascript" src="http://domain.businesscatalyst.com/CatalystScripts/ValidationFunctions.js"></script> 
       <script type="text/javascript"> 
//<![CDATA[ 
var submitcount16251 = 0;function checkWholeForm16251(theForm){var why = ""; 
if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value); 
if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); 
if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); 
if(why != ""){alert(why);return false;}if(submitcount16251 == 0){submitcount16251++; 
theForm.submit(); 
return false;}else{alert("Form submission is in progress.");return false;}} 
//]]> 
</script> 

하면 FullName

당신이 할 수있는 또한 이름과 성을 결합하여 두 개의 별도 필드가 필요하지 않으므로 클라이언트를 위해 거의 사용하지 않습니다. 링크 here을 참조하십시오. 입력 필드 I가 두 형태의 생성 된 ID를 사용되었을 I는 다른 태그의 ID 번호를 조정

<input type="text" name="FullName" id="FullName" class="cat_textbox" maxlength="255" /> 

ID가 될 것이다. 이 작업을 할 때마다 HTML에 추가하도록 요청하는 양식으로 모든 새 태그를 여러 태그에 모두 할당 할 필요가 없습니다. 그러나 유효성 검사 변경 및 이메일 태그 변경이 도움이되었습니다. 이것은 동일한 페이지에서로드 된 것을 확인했습니다. 또한 WebFormID이 백엔드에서 기존에 생성 된 Webform과 관련되어 있는지 확인하십시오!

시스템 확인 페이지

만 나는로드 스타일 시트와 자바 스크립트와 스타일없이로드 페이지에 대한 몇 가지 404을 얻었다. 시스템 확인 페이지가 기존 스타일 시트가 아닌 일부를로드하려고했기 때문입니다. 새로운 템플릿을 만들어서 결국 수정하기가 너무 어렵지 않았습니다.

-1

전자 메일 주소없이 양식을 만들려면이 코드를 사용할 수 있어야합니다. 적어도 최종 사용자는이 코드를 볼 수 없습니다. 모든 일은 미리 전자 메일 주소 양식 필드를 채운 다음 visibility : hidden;을 사용하여 숨 깁니다. 사실 전자 메일 주소는 양식 유효성 검사를 통과합니다.

유형 = "텍스트"스타일 = 귀하의 의견 태그 안에이 곳을 사용하려면 "가시성 : 숨겨진"이름 = "EmailAddress를"값 = "[email protected]"ID = "EmailAddress를"

0

을 그냥 제거 코드에서이 두 줄

if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); 
if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); 
그들이

를 작성하는 경우 그래서 BC는 확인하지 않습니다

관련 문제