Convert a number field to negative and then multiple by another field
Hello,
I'm new to using JavaScript (no training at all) and am trying to take a field that the user enters as a negative number and convert that number to a positive and then multiple by another field.
This is what I wrote, but it is not working correctly so I think it has to do with the order.
The first thing I'm trying to is to multiple by -1 to turn it to a positive number and then multiple by the other field.
event.value = this.getfield("*S7 Special Functions Costs").value *-1 * this.getfield ("S5Total Meals");
The first thing I'm trying to is to multiple the field "*S7 Special Functions Costs" by -1 to turn it to a positive number and then multiple by the other field "S5Total Meals". I'm using the this.getfield because my field names have spaces and I used the '*' in my field names to denote fields that were used in other spots, which made sense when I started since its a multiple page Projected Operating Costs and that was before I started doing math in the form.
If any JavaScript expert can help I would appreciate it.
