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

Upload / Attach File in form

Avatar

19-06-2008

I'm new to the LiveCycle Designer, so please bare with me.



I need to design a form that will allow a user to link/attach files. When the user submits the form we would like the form to link to the documents like a hyperlink.



Please help the newbie.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

20-06-2008

Your options are to attach the document (and have it part of the PDF) or create a link to a file (where it is stored in a common location) and pass around the link. The link would have to to a web server (i.e. an HTTP connection). You will not be able to have a map to a drive or something like \\servername\folder as your link.



Make sense?

Avatar

20-06-2008

Thanks for the tip, it does make sense, however I do not know how to make this work. I'm interested in both solutions Paul. Can you expand on that please?

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

20-06-2008

If you post your email address I will send you a sample of the programmatic way to attach a file.



For the link approach. I assume that you are referencing the files from a common location. So once we pick the file and know where it is we can create a link like http://servername/foldername/filename based on info we know and info we are passed. Then we simply construct the link name. I like to create a button (because it has a click event) and make it look like a link (no borders, same as the back ground and chnage the text and colour to blue). Does this make sense to you?

Avatar

23-06-2008

Karen-



Paul sent me some code that did the trick however with a few changes I got it almost working as you described. Let me know if he doesn't get back to you.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

23-06-2008

Just sent Karento and bernie the updated sample.

Avatar

26-06-2008

I came across a user that is not able to add attachments. When I preview the PDF in designer it works perfectly. When I distributed the form for testing the user clicks on the add button and there is no prompt to select the files.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

26-06-2008

Are they running Acrobat or Reader?