Making a field only calculate if current field not blank and if current field plank the total field
New Issue
I have 3 fields SG1 NG1 EG1 The simple calculation is EG1=NG1+SG1
I am trying to accomplish two objectives
If NG1 is blank EG1 should be blank
If NG1 not blank EG1=NG1+SG1
I have tried several things and the closest I can get is to place the math formula in the NG1 validate field, but the closest I can get always adds the Starting Value of NG1 +SG1 even when I update NG1. It never adds the update value,
Also any one recommend any videos that explain java script for adobe pasr this, which is the most complicated script I have accomplishe with out help?
var level=this.getField("SL1").value;
if(event.target.value!="Off")this.getField("EL1").value=level+1;
if(event.target.value=="Off")
this.getField("EL1").value=level;
