1 Reply Latest reply on Sep 17, 2012 1:14 PM by try67

    Deleting Form Field Tooltips using JavaScript in Acrobat 8

    Chyron8472

      Hi all,

       

      I'm updating the PDF forms for the firm I work for, and when I run Form Field Recognition, Acrobat assigns a tooltip to every field it creates.

      I'm trying to remove all form tooltips from a document (remove them from the document, not just hide them from myself), and I'm aware that JavaScript can accomplish this, but I'm not adept enough at JS to know how to write the proper code.

       

      I use Acrobat 8 Pro.

       

       

      Also, I am aware that Google is your friend, but none of the methods which I find regarding this issue seem to work for me.

       

       

       

      // I've tried this:

      for (var i=0; i<this.numFields; i++) {
      var fname = this.getNthFieldName(i);
      this.getField(fname).userName = ""}

      // from here

       

      // and this:

      var nNumFields = this.numFields;

      var cFieldName;

      for(i = 0; i < nNumFields; i++) {

      cFieldName = this.getNthFieldName(i);

      this.getField(cFieldName).userName = "";}

      // from here

       

      But they don't work and I'm not sure why.

        • 1. Re: Deleting Form Field Tooltips using JavaScript in Acrobat 8
          try67 MVP & Adobe Community Professional

          Both scripts should work fine... Are you seeing any error messages in the

          JS console?

          I've noticed in the past that when using the Form Recognition Wizard it

          sometimes produces odd results and can "confuse" the getNthFieldName method

          to return blank or invalid values, which will cause the loop to break in

          mid-action.

          If that's the case, you should see an error message in the console saying

          something like:

          this.getField("blah") has no properties