I have put two iContact signup forms on the same page. One in the sidebar and one in the middle of the page.
When I submit the one in the middle of the page, it gives me an error. The following code is triggering the error.
[CODE]
<script type=”text/javascript”>
var icpForm64527 = document.getElementById(‘icpsignup64527’);
function verifyRequired64527() {
if (icpForm64527[“fields_email”].value == “”) {
icpForm64527[“fields_email”].focus();
alert(“The Email field is required.”);
return false;
}
return true;
}
</script>
The reason is because it is looking for a required email field from the sidebar form. It is reading both forms as the same. iContact support told me this could not be fixed.
So I need one of two solutions.
A way for the error code to work properly with both forms.
The other option which I think is simpler is to remove the javascript validation code. I do not want to do this manually for each form.
[B]Is there a way in javascript to dynamically remove the block of javascript shown above anytime it appears on a page?