5 Replies Latest reply on Oct 23, 2015 12:28 AM by try67

    Jump to field based on dropdown list selection

    beatongz

      HELLO-

       

      TRYING TO JUMP TO A BUTTON THAT RUNS A SCRIPT BASED ON THE SELECTION OF DROP DOWN.

       

      BASICALLY, HAVE A DROP-DOWN NAMED "DECK" THAT WHEN "FIX" IS SELECTED FROM THE LIST IT JUMPS TO A BUTTON NAMED "IMAGE" THAT ALSO RUNS A SCRIPT TO IMPORT ICON.

       

      I HAVE IT ALMOST WORKING. HERE IS WHAT I HAVE.

       

      DROPDOWN "DECK" SCRIPT

      var selectedPackage = this.getField("DECK").value;

      if (selectedPackage=="FIX");this.getField("IMAGE").setFocus();

       

      BUTTON "IMAGE SCRIPT"

      event.target.buttonImportIcon();

       

      WE USE FORMS TO COMPLETE INSPECTIONS. I AM USING PDF EXPERT  ON IOS WHICH ALLOWS ME TO PULL AN IMAGE VIA THE BUTTONTARGETIMPORT SCRIPT. I WOULD LIKE TO BEGIN THE IMAGE CAPTURE PROCESS BASED ON THE SELECTION OF "FIX" FROM THE ADJACENT DROP-DOWN.

       

      BEEN STRUGGLING TO GET THIS TO WORK CORRECTLY. I HAVE BOTH SCRIPTS WORKING JUST NOT WORKING BASED ON THE SELECTION OF "FIX" ONLY.

       

      THANKS IN ADVANCE FOR ANY ASSISTANCEON THIS.