내가 형태로 데이터 속성과 행동을 교환하는 기능을 제출합니다.전화 사용자 정의 기능
이var submitcount7303 = 0;
function checkWholeForm7303(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 (why != "") {
alert(why);
return false;
}
if (submitcount7303 == 0) {
submitcount7303++;
SwapAction(); //Calling Function
theForm.submit();
return false;
} else {
alert("Form submission is in progress.");
return false;
}
}
양식을 제출하지 않고 나는 오류가 나타납니다 : 검증 JS 지금과 같은
<form action="" data-action="/FormProcessv2.aspx?WebFormID=89926&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}" enctype="multipart/form-data" onsubmit="return checkWholeForm7303(this)" method="post" name="catwebformform7303" class="review-form custom">
I : 여기
Reference Error: SwapAction is not defined.
액션과 양식 HTML입니다 내가 단순한 것을 간과하고 있다고 가정한다.
SwapAction();
을 제거하고
data-action
을 제거하고 양식을 다시 기본값으로 설정하면 문제없이 작동합니다.
어떻게 오류를 수정하고 스크립트를 구현합니까?
알았습니다! 고맙습니다. 이제 작동합니다. – L84