I was hoping someone might be kind enough to look at the script below, and tell me if there is a way to actually get it to work. I am calculating the sum of two fields, then dividing by the sum of two other fields.
/*this.rawValue = (Number(Field_1_1.rawValue) + Number(Field1_2.rawValue)) / (Number(Field_1_3.rawValue) + Number(Field_1_4))
*/
Thanks in advance for any help!!
**** Ok - I was able to get it to work by doing this:
this.rawValue = Number(Field_1_1.rawValue) + Number(Field_1_2.rawValue) / Number(Field_1_3.rawValue) + Number(Field_1_4.rawValue);
...Unless the user enters a zero instead of an actual number. If they enter a zero, it does not perform the calculation. Please, any help would greatly be appreciated. Thanks!
this.rawValue = Number(Field_1_1.rawValue) + Number(Field_1_2.rawValue) / Number(Field_1_3.rawValue) + Number(Field_1_4.rawValue);
...Unless the user enters a zero instead of an actual number. If they enter a zero, it does not perform the calculation. Please, any help would greatly be appreciated. Thanks!