Help with Java
Hello - I am very new to Java coding, and need some assistance with this task.
I am not getting any errors with this code, BUT at the same time, nothing is happening with the form.
What i am trying to do
I have a checkbox. I need to assign a $ amt to the box
If check box is checked - I need $ amt to appear in separate text box "ColAMT"
If check box is NOT checked - i need 0 to appear in separate text box "ColAMT"
What I think should happen in the form, is the unchecked box should appear as "0" in the "ColAMT" box until it is checked. Once it is checked an assigned number should appear
This is the code i am trying
var value = 5365; if (this.getField("COLBox").value!="On") Value += Number(this.getField("ColAMT").value);
var newValue = 0; if (this.getField("COLBox").value!="Off") newValue += Number(this.getField("ColAMT").value);
event.value = newValue;
Thank you, Courtney



