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

Adding multiple buttons to attach files

Avatar

Avatar
Validate 1
Level 1
willp512
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
willp512
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
willp512
Level 1

23-09-2016

I created a form and I have multiple buttons that say "Attach" and when clicked will allow a user to attach a file to the PDF. The file name then shows up in the text field next to it. I am running into a problem though. When I attach a file using button1 it will work. Button2 will attach another file and it shows up in the attachments ... but when I save and close it and reopen it, only the last file I attached is saved in attachments. Is it because I used the same JavaScript for all my buttons (besides changing the TextField name?? Here is the script I used:

var myDoc = event.target;

var sFile;

myDoc.importDataObject(sFile);

var myDataObject = myDoc.getDataObject(sFile);

TextField10.rawValue = myDataObject.path;

ANY help would be great. I'd like to have button1 attach a file, button2 attach a different file, etc. And they all be saved and available when reopened.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mouslander
Level 4

03-10-2016

Is there any way you can send the file?