Skip to main content
mecrtp
Participant
July 17, 2018
Question

End user adding hyperlinks to a form?

  • July 17, 2018
  • 3 replies
  • 3212 views

Hi,  I have created a fillable pdf form, and I need my end users to be able to paste links to various websites related to their project initiatives they are using the form to report out to us on (supporting info).  I have created a few text fields, allowed rtf in properties, and changed settings in the form to allow it to connect to allow the pdf to access all websites (under preferences).

However, when I fill out a dummy form and paste a link into one of my boxes, save it, and email it to myself, when I open the pdf the link is not clickable (or ctrl clickable!) I have to copy and paste each link into a browser to view the link.

Can I change a setting to allow folks to share links with us that will be live for us to click and view when the report form is submitted to us?  Thanks!

3 replies

JR Boulay
Community Expert
Community Expert
October 20, 2022

If your "text box" is a form field, do as explained above.

If your "text box" is made with the Comment tool the user can directly copy-paste an URL inside.

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
October 21, 2022

This is awesome. Thanks so much for your help!

JR Boulay
Community Expert
Community Expert
October 18, 2022

- Create a Text field in Form Edit mode.
- Open the Actions tab and choose Mouse Up for the Mouse Trigger. This trigger will execute the action when a user clicks on the text field.
- Add a JavaScript in the Action tab and type the following in the JavaScript Editor:

 

if ( !/^\s*$/.test(event.target.value) ) {app.launchURL(event.target.value);}


- The next time a user clicks in the text field, the URL opens in the user's default Web browser.

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
October 19, 2022

Thanks for responding. What we need is for the user to be able to copy a url and have it be a live link in a text box.

try67
Community Expert
Community Expert
October 20, 2022

You can allow them to do it, but it's not so straight-forward.

You will need to set the field as having Rich Text Formatting first (under Properties - Options):

Then, when they enter the URL into the field they'll need to select it, press Ctrl+E to show the Properties Toolbar, and then click the Hyperlink button:

 

 

Then they would be prompted to enter the URL to link to (as the text doesn't have to be a URL, it can be anything):

 

 

And after they hit Close the selected text will become a (blue and underlined) clickable link. To open it in the browser you would need to hold down Ctrl when clicking it, though:

 

 

 

Known Participant
October 18, 2022

I have the same question. Is it possible to have the End user add hyperlinks to a pdf form text box without using the Link tool?