2 Replies Latest reply on May 24, 2008 6:58 AM by telecommunicate

    Get Field Name?

    telecommunicate Level 2
      First off, I'm a bit of a noob at Acrobat javascript, so bear with me.

      I'd like to have a button that calls a particular function based on the button name. This is so end users, who will be adding buttons, have only to change the name in order for that button to execute the correct (document level) script. The button script would amount to something like "call a function with the arguments associated with this button", which would mean all someone would have to do to add buttons that execute different scripts is rename the button (i.e., they don't have to deal with document level or button level javascript).

      Is there a function of this sort? The closest thing I could find is getNthFieldName, which isn't quite what I'm after.