11 Replies Latest reply on Dec 20, 2017 9:55 AM by Joel_Geraci

    javascript on ipad

    bryang51000329

      Hello,

          I have an awesome PDF Form that works perfectly on my PC. However many of the javascripts I'm using to make it so when you check a box another checks/unchecks are not working on iPad. Here are 2 samples. Anyone know how to get this working?

       

      Example 1

      if (event.target.value!="Off") this.getField("15moLoyalty").checkThisBox(0, true);

       

      Example 2

      if (event.target.value!="Off") this.getField("15moLoyalty").checkThisBox(0, false);

       

      Here is another try I took doing it as a calculation field. This wont work on the iPad either.

       

      Example 3

       

      var f = this.getField("plans");

      if(f.isBoxChecked(0)){

      getField("15moLoyalty").checkThisBox(0,true);

      getField("10moBundle").checkThisBox(0,true);

      getField("10mowireless").checkThisBox(0,true);

      }

      else if(f.isBoxChecked(1)){

      getField("15moLoyalty").checkThisBox(0,true);

      getField("10moBundle").checkThisBox(0,true);

      getField

      ("10mowireless").checkThisBox(0,true);

      }

      else if(f.isBoxChecked(6)){

      getField("15moLoyalty").checkThisBox(0,false);

      getField("10moBundle").checkThisBox(0,false);

      getField

      ("10mowireless").checkThisBox(0,false);

      }

      else if(f.isBoxChecked(7)){

      getField("15moLoyalty").checkThisBox(0,false);

      getField("10moBundle").checkThisBox(0,false);

      getField

      ("10mowireless").checkThisBox(0,false);

      }

      else {

      getField("15moLoyalty").checkThisBox(0,false);

      getField("10moBundle").checkThisBox(0,true);

      getField

      ("10mowireless").checkThisBox(0,true);

      }

       

      The weird thing is I have some advanced Javascript that works for other calculations. Just can't figure this one out. Any help would be appreciated.