I am receiving the following JavaScript error:
'document.W4Form.Married' is null or not an object.
Here is my code:
<xsl:choose>
<xsl:when test="(MarriedFileSingle)='Y'">
<INPUT type="checkbox" name="fMarriedFileSingle" onClick="javascript:marriedSingle()" checked="yes"></INPUT>
</xsl:when>
<xsl
therwise>
<INPUT type="checkbox" name="fMarriedFileSingle" onClick="javascript:marriedSingle()" ></INPUT>
</xsl
therwise>
</xsl:choose>
<script LANGUAGE="JavaScript">
if (document.W4Form.fMarriedFileSingle.checked ==true) document.W4Form.MarriedFileSingle.value = "Y";
else document.W4Form.MarriedFileSingle.value = "N";
function marriedSingle() {
// set the hidden field for the MarriedFileSingle with Y/N for checked/unchecked event of the check box
if (document.W4Form.fMarriedFileSingle.checked ==true) document.W4Form.MarriedFileSingle.value = "Y";
else document.W4Form.MarriedFileSingle.value = "N";
}
</script>
Thank in Advance for your kind help.
'document.W4Form.Married' is null or not an object.
Here is my code:
<xsl:choose>
<xsl:when test="(MarriedFileSingle)='Y'">
<INPUT type="checkbox" name="fMarriedFileSingle" onClick="javascript:marriedSingle()" checked="yes"></INPUT>
</xsl:when>
<xsl
<INPUT type="checkbox" name="fMarriedFileSingle" onClick="javascript:marriedSingle()" ></INPUT>
</xsl
</xsl:choose>
<script LANGUAGE="JavaScript">
if (document.W4Form.fMarriedFileSingle.checked ==true) document.W4Form.MarriedFileSingle.value = "Y";
else document.W4Form.MarriedFileSingle.value = "N";
function marriedSingle() {
// set the hidden field for the MarriedFileSingle with Y/N for checked/unchecked event of the check box
if (document.W4Form.fMarriedFileSingle.checked ==true) document.W4Form.MarriedFileSingle.value = "Y";
else document.W4Form.MarriedFileSingle.value = "N";
}
</script>
Thank in Advance for your kind help.