您的验证是在 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"
:
<option value="1">Member = $0</option>
希望这有效!