Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Java Scripting Help - Creating a button with function

Avatar

22-06-2008

Hello, I need help with Java Scripting for Adobe LiveCycle Designer v8.



I need to create a button that when pressed, the user can attach a document (word doc, excel doc, jpg etc) to the pdf form they are filling out. The users of the form I am creating are not Acrobat savvy so may not even know that attaching files to a pdf is available. Hence, I need a visible button that when pressed, will automatically display the dialog box to allow the user to attach files to the pdf form.



Many thanks for your help!

Karen.

Replies

Avatar

Avatar
Level 5
_SekharN_
Level 5

Likes

0 likes

Total Posts

246 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_SekharN_
Level 5

Likes

0 likes

Total Posts

246 posts

Correct Reply

0 solutions
View profile
_SekharN_
Level 5

23-06-2008

I have used following code in relation to a dropdown box. This could be your baseline to try on your own. May not need many changes....



var doc = event.target;

doc.importDataObject();

var MyPar1 = doc.getDataObject();

var filename = MyPar1.path;



Good Luck;