How to Create a Clickable Web Address or LinkedIn URL Field in Acrobat
Question details
The user wants to add a fillable text field in a PDF form where respondents can input a web address or LinkedIn URL that becomes a clickable hyperlink.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form where user-submitted text needs to function as a live, clickable web link.
- Observed behavior
- A standard text field does not automatically convert entered URLs into clickable links, requiring a specific setup to trigger the URL launch.
Ensure you have Adobe Acrobat Pro or an advanced PDF editor installed, as configuring interactive web links from form fields requires access to JavaScript document actions.
Use a Text Field and a JavaScript Button to Launch the URL
This solution involves creating a text field for the user to paste their URL, and adding a button equipped with a JavaScript action to open that specific web address.
Because standard PDF text fields do not automatically convert typed text into live hyperlinks, the most reliable method is to pair the input field with an action button. When clicked, the button reads the URL entered by the user and executes a JavaScript command to open it in a web browser.
Open your document in Adobe Acrobat, navigate to 'Tools', and select 'Prepare Form'. Add a new Text Field where you want the user to type the URL, and name it specifically, such as 'LinkedInURL'.
In the 'Prepare Form' toolbar, select the 'Button' tool. Draw a button next to the text field (e.g., labeled 'Go to Profile' or 'Open Link').
Right-click the newly created button and select 'Properties'. Go to the 'Actions' tab, choose 'Mouse Up' as the trigger, select 'Run a JavaScript' from the action drop-down, and click 'Add'.
In the JavaScript editor, enter the following code: `var url = this.getField('LinkedInURL').value; if(url){ app.launchURL(url, true); }` and click 'OK'.
To prevent browser errors, consider adding field validation to ensure users include 'https://' when typing their web address. You can set this up in the 'Format' or 'Validate' tab of the Text Field properties.

Use WPS PDF to Create and Edit Interactive PDFs
If you need a fast and straightforward way to add clickable URLs and edit PDF documents without writing complex JavaScript, WPS Office provides an intuitive, comprehensive PDF editor. It perfectly balances powerful editing features with a user-friendly interface.
- 1. Open your PDF in WPS Office: Launch WPS Office and open your existing PDF document using the integrated WPS PDF editor.
- 2. Insert a Hyperlink: Navigate to the 'Edit' tab on the top ribbon and click on the 'Link' option to draw a clickable area anywhere on the page.
- 3. Configure the Web Address: In the pop-up dialog box, select 'Open a web page' and type or paste the desired website or LinkedIn URL.
- 4. Save and Test: Save your PDF document. Switch to the standard viewing mode and click the newly created link to ensure it successfully directs to the target URL.

Frequently Asked Questions
Why is my clickable PDF link not working when opened in Chrome or Edge?
Web browsers use built-in PDF viewers that often restrict or completely disable JavaScript execution for security purposes. Since the `app.launchURL` method relies on JavaScript, it typically requires a dedicated PDF reader like Adobe Acrobat or WPS PDF to function correctly.
Can I format the text field to automatically convert URLs into links as the user types?
Standard PDF forms do not support auto-converting text input into clickable links natively within a text field. The accepted workaround is using a secondary button with JavaScript to extract the typed text and execute a browser launch command.
How do I ensure respondents enter a valid LinkedIn URL?
You can add a custom validation script to the text field properties. By adding a simple JavaScript regex check in the 'Validate' tab, you can prompt the user with an error message if their input does not contain 'linkedin.com' or the required 'https://' prefix.




