Hi there,
I have the following code in a submission form:
<script>
window.onload=function(){
if (document.getElementById("InsertRecordPalmas").checked)
{var new_value = "Palmas";}
else
{var new_value = "AAA";}
document.getElementById("cbParamVirtual1").value=new_value;
}
</script>
This code puts a certain value on Virtual1 (which is a TextBox) depending on whether Palmas Check Box is checked or not. It works perfectly, but it stops working when I turn the Submission Form into a Detail Report. I know is not the "onload" because I tested it without the if statement and it works, so I'm guessing it has to do with the way I'm referencing or calling Palmas Check Box.
Does anyone knows why is the if statement behaving differently when the Submission Form is changed to a Detail Report? Thanks!