0 Replies Latest reply on Feb 7, 2015 12:42 PM by Alyksandrei

    Allowing user input to override autocalculations


      How do I get a form field to allow user input that overrides the autocalculation? I'm particularly looking for a code snippet I can use and/or modify. The code I have now is included below.



      //check bonus = stat bonus + applicable proficiency bonus
      var profUse = this.getField("SklAcrProf").value;
      var stat = Number(this.getField("DEX1").value);
      var profVal = Number(this.getField("Proficiency Bonus").value);
      var check = Number('-2');
      if (profUse != "Off"){
          check = stat + profVal;
          check = stat;
      event.value = check;