您的验证是在HTML的此功能正在做:
function checkWholeForm65983(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.HomePhone) why += isEmpty(theForm.HomePhone.value, "Home Phone Number");
if (theForm.CaptchaV2) why += captchaIsInvalid(theForm, "Enter Word Verification in box below", "Please enter the correct Word Verification as seen in the image");
if (theForm.CAT_Custom_257593) why += isEmpty(theForm.CAT_Custom_257593.value, "Member Number");
if (theForm.CAT_Custom_255275) why += checkDropdown(theForm.CAT_Custom_255275.value, "Available Dates");
if (theForm.CAT_Custom_255276) why += checkDropdown(theForm.CAT_Custom_255276.value, "Number of Tickets");
if (theForm.CAT_Custom_255277) why += checkSelected(theForm.CAT_Custom_255277, "Payment Method");
if (theForm.CAT_Custom_255279) why += isEmpty(theForm.CAT_Custom_255279.value, "Questions/Message or Other Information");
if (why != "") {
alert(why);
return false;
}
if (submitcount65983 == 0) {
submitcount65983++;
theForm.submit();
return false;
} else {
alert("Form submission is in progress.");
return false;
}
}
具体CAT_Custom_255277是什么,是再次确认付款选项正在被填补。如果选择Member = $0,我们希望忽略此检查。因此,尝试这样的事情:
if (theForm.CAT_Custom_255277 && theForm.CAT_Custom_255276.value != "1")
why += checkSelected(theForm.CAT_Custom_255277, "Payment Method");
我们把它设置为"1"的原因是因为你的Member = $0选项设置为"1":
Member = $0
希望这个作品!