Answered
I've got a field for the location of a file associated with the form. I'd like the users to be able to enter the location's URL as text, and have the form turn that into a clickable hyperlink, just as if I'd used LiveCycle Designer's "insert hyperlink" function. Is this possible with JavaScript? The scripting reference only talks about Designer's internal hyperlink addition/modification.
Just for reference, the links are to files in SharePoint spaces. Unfortunately, none of my users have/will have Acrobat X anytime in the near future, so none of X's SharePoint integration features will help.
Thanks,
SLDC
it is possible to create links of text inputs via scripting, but it's not that easy.
You generally have to allow RichText entries for your textfield.
Then you can use XHTML statements to create a hyperlink from the input.
Here's an simple example file that will do this.
https://acrobat.com/#d=3dunFuU2zL9MQg*j-PZpAQ
But, there are many things unsolved.
There is no control of how the link is written, so the hyperlink can point to an invalid destination.
Also, the whole text is converted to a hyperlink.
If you only want to convert a portion of the text, then you have to extend the scriptings.
So, you better choose the build-in way.
If your set up your text fields for rich text, you can highlight the portion of the text you wanna convert into a hyperlink.
Then click right and select "Hyperlink" from the context menu.
There you can add the URI to you destination and the app does the rest for you ;-)
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs