I'm having trouble getting addition and subtration to work correctly.
I have a set of 5 fields that need to be added up and the one field that needs to be subtracted to give a total.
(Field 1 + Field 2 + Field 3 + Field 4 + Field 5) - Field 6 = ?
How do I make the final field equal this? With the code I have currently, it's giving me this:
$10,000,025,000, where the answer really should be ($100,000+25,000)- 0 = 125,000.
But instead of giving a sum of 100K + 25K, it's putting the two side by side.
Can anyone please help me out? I would GREATLY appreciate suggestions. Here is what I have currently, which isn't working:
event.value = ( this.getField("FIELD 1").value +
this.getField("FIELD 2").value +
this.getField("FIELD 3").value +
this.getField("FIELD 4").value +
this.getField("FIELD 5").value ) -
this.getField("FIELD 6").value;
if(event.value == 0) event.value = "";
ALSO, is there a way to make the "Text" entered in a form print black... but not the rest of the form print black? - just the text?
or
George Kaiser