7 Replies Latest reply on Jan 5, 2017 1:25 PM by southwestd17121417

    Adobe Pro DC script for copying data from one dropdown menu to another

    southwestd17121417 Level 1

      I have a fillable form that I've made for our sales team to use on sales calls. There are about 20 different fields per row in which they must either fill in data or choose an option from a dropdown menu. I've added a check box beside all of the rows except the first row that the user can check if they simply want to repeat the entire row of entries above. If they uncheck the box, the copied data is cleared from that row.

       

      The script that I've added to the box works for the form fields, but not the dropdowns. Can anyone help me figure out the script that I need to add/revise in order for the check box to work for the entire row above, including the dropdowns? Here is the script that is working for the form fields:

       

      this.getField("Location2").value  = ""

      if (this.getField('copy').value == 'Yes') {

      this.getField("Location2").value =  this.getField("Location1").value

      }

       

      this.getField("Qty2").value  = ""

      if (this.getField('copy').value == 'Yes') {

      this.getField("Qty2").value =  this.getField("Qty1").value

      }

       

      this.getField("Type2").value  = ""

      if (this.getField('copy').value == 'Yes') {

      this.getField("Type2").value =  this.getField("Type1").value

      }

       

      this.getField("Size2").value  = ""

      if (this.getField('copy').value == 'Yes') {

      this.getField("Size2").value =  this.getField("Size1").value

      }

       

      Thank you for any help!!