Hi,
I was under the impression that if a field was disabled the form would still submit all the other fields data but not the disabled field.
Am i correct in assuming that ?
The reason I ask is that I have a form that has fields disabled if certain criteria is met such as the following code
however if I try and submit the form with the fields disabled then I get an HTTP 500 error.
however if the fields are not disabled the form values get submitted OK.
does anyone have any ideas
Regards
Paul
I was under the impression that if a field was disabled the form would still submit all the other fields data but not the disabled field.
Am i correct in assuming that ?
The reason I ask is that I have a form that has fields disabled if certain criteria is met such as the following code
Code:
<script language = "javascript">
function CheckSelect() {
var Print = document.getElementById("txtPrintNo").value.length;
var disableSelect = false;
if (Print <2) disableSelect = true;
document.forms['frmEnterRecord'].elements['selSwatch'].disabled = disableSelect;
document.forms['frmEnterRecord'].elements['selLayout'].disabled = disableSelect;
}
</script>
however if I try and submit the form with the fields disabled then I get an HTTP 500 error.
however if the fields are not disabled the form values get submitted OK.
does anyone have any ideas
Regards
Paul