Link to home
Start Free TrialLog in
Avatar of go4java
go4java

asked on

Adobe Acrobat 5: addWeblinks()

I added the method addWeblinks() to a text field (as JavaScript):
var numWebLinks = this.addWeblinks();
When moving to another field (onBlur), Adobe messages 'Creating weblinks' in the status bar.
Unfortunately, weblink is not created (at least not visible and functional). The content of the field is "http://www.google.de".
How to get it run?
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

The Doc.addWeblinks() method works only on "real" PDF content, and not form fields. What are you trying to accomplish (be as specific as posible)?
You may be able to use a different methanism to create the same effect (e.g. create a button that opens the selected URL).
Avatar of go4java
go4java

ASKER

I've a form with various input fields. One is a TEXT field to keep a specific URL, entered (copied) by the user.
After leaving the field, it should automatically convert to a hyperlink, so that following users can simply click on the URL.
It's not possible to do this in a one-step solution. First of all, this would only work with the full version of Acrobat (you need to modify the document and save it again, which is not possible in the free Reader). YOu also need to convert your field from a text input field to a link, which would mean that you can not update the link anymore once you've converted it to a link.
How about using two different form fields: One for the input, and one for the actual link? This way you can modify the document, and still modify the link if that's necessary.

Can you provide more information about what you want to accomplish with this? It sounds like you have two different user types for your document. There may be other ways to accomplish this, please provide as much inofrmation as possible.
Avatar of go4java

ASKER

We are working with Acrobat 5, not the reader. Reader is for end-users only.
Soon, we'll get Acrobat 6...
If I follow the steps mentioned on top, the function seems to process (but the field will not be converted to a link - as it should).
The field with the link will be submitted and some other users will add more information to the form (each of them will submit accordingly).
Can't use 2 fields, one is a must...
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial