Need to use name of current button in the associated Acrobat javascript code -


i need insert several (50+) buttons on acrobat document, each of "save as" on specific non-pdf attachment. single button, following script works perfectly:

this.exportdataobject({cname:"attachment01", nlaunch:0}) 

it simpler if use name of current/calling button in javascript this:

var currbuttonname = ??? this.exportdataobject({cname:currbuttonname, nlaunch:0}) 

with second approach, use name of button determine attachment saved, don't have change javascript code @ all.

is possible name of current button , if how?

thanks.

using

var currbuttonname = event.target.name ; 

or based on event.target.name should want accomplish.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -