1 Reply Latest reply on Jun 4, 2013 5:31 PM by jimbowvu

    Commit a value before hidding field


      I am using this script below in a pdf form and I was wondering how I can clear a value from a field before it is hidden. I can put a 0 into the field, but this field is part of a calculation and it still calculates and doesn't commit the value before it's hidden. Is this possible?


      Thank you.


      (function () {

          var v1 = getField("Motor-coach").valueAsString;

          switch (v1) {

          case "Yes" :
              event.value = 0;        
              this.getField ('FoodRow4').display = display.hidden;


          case "No" :

              this.getField('FoodRow4').display = display.visible;