9 Replies Latest reply on Apr 2, 2015 6:10 PM by CambLSAT

    Trouble giving tabOrder an array of text boxes.

    CambLSAT Level 1

      I'm trying to change the tab order for a specific page, but I keep getting the error "Expected Array of Buttons, CheckBoxes . . . but received nothing." Here's my code:

       

      var myDocument = app.activeDocument;
      myDocument.pages[0].tabOrder = [myDocument.pages[0].textBoxes.item("First Item"), myDocument.pages[0].textBoxes.item("Second Item")];
      

       

      I've also tried the following, to no avail.

      var myDocument = app.activeDocument;
      myDocument.pages[0].tabOrder = Array(myDocument.pages[0].textBoxes.item("First Item"), myDocument.pages[0].textBoxes.item("Second Item"));
      

       

      Any help would be greatly appreciated!