Help with Java
Hi Guys,
I am very new to Java Coding and trying to do as much as I can without help.
I have a form with multiple dropdown boxes, each dropdown has 5 options Strongly Agree, Agree, Neither Agree or Disagree, Disagree and Strongly Disagree. Each option is assigned a number between 0-4. All the boxes are then added to give a score which will give a discription. The problem I have is that the form is adding each field as I go and taking time. I want to add a button that you press when the drop down boxes have been completed to perform the calculation.
The field the calculation will go in is called "Your_Risk_Score". Can some one help me with the last bit of my script to get the box.
This is what I have so far:-
var v1 = Number(this.getField("ATR1").valueAsString);
var v2 = Number(this.getField("ATR3").valueAsString);
var v3 = Number(this.getField("ATR5").valueAsString);
var v4 = Number(this.getField("ATR7").valueAsString);
var v5 = Number(this.getField("ATR9").valueAsString);
var v6 = Number(this.getField("ATR11").valueAsString);
var v7 = Number(this.getField("ATR13").valueAsString);
var v8 = Number(this.getField("ATR15").valueAsString);
var v9 = Number(this.getField("ATR17").valueAsString);
var v10 = Number(this.getField("ATR19").valueAsString);
var v11 = Number(this.getField("ATR21").valueAsString);
var v12 = Number(this.getField("ATR23").valueAsString);
event.value = v1+v2+v3+v4+v5+v6+v7+v8+v9+v10+v11+v12;
