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
Post a Comment