PDF Editing Issues

Create a PDF QR Code from a Form Field and URL in Acrobat

Emma BrownEmma Brown Nov 19, 2026 868 views

Question details

Create a QR code in a PDF form that contains a URL built from a fixed address and another field's value.

Create a PDF QR Code from a Form Field and URL in Acrobat
Product
Adobe Acrobat PDF forms
Device & OS
not provided
Scenario
A user enters a value in a PDF form, and the QR code should open the corresponding web page.
Observed behavior
The QR code should encode one complete, valid URL and update when the form value changes.
Before you start

Open the form in an Acrobat version that supports editing form fields and check whether its barcode field supports QR codes and custom values. Identify the fixed URL and the exact name of the field containing the value to append.

Solution 1Recommended

Build the URL in a calculated field and encode it as a QR code

Use this approach when the PDF form editor supports a QR barcode field that can encode a calculated field's value.

The URL must be encoded as one complete string. Two separate QR codes will not combine into a single hyperlink.

1
Add the form fields

In Acrobat, open All tools > Prepare a form. Add or identify the input text field and name it id, then add a second text field named url.

2
Calculate the URL

Open the url field's Properties, select Calculate, and choose a custom calculation script. For a URL whose last path segment is the input value, use: var v = this.getField('id').valueAsString; event.value = v ? 'https://example.com/item/' + encodeURIComponent(v) : ''; Replace the example address with your actual base URL.

3
Configure the QR field

In Prepare a form, add a barcode field and open its Properties. Select QR Code and configure its value or calculation to use the url field, if those options are available. Use an encoding that produces the URL alone rather than extra field names or data.

4
Check the calculation order

In Prepare a form, use More > Set Field Calculation Order if available. Make sure the url field is calculated before the barcode field.

5
Test the form

Save the PDF, enter a sample value in id, and scan the QR code with multiple scanners. Confirm that each scanner reads the complete URL and opens the intended page; also test the PDF in the viewers your recipients will use.

Build the URL in a calculated field and encode it as a QR code
Viewer and barcode limitations: Dynamic Acrobat JavaScript and barcode updates may not work in browser PDF viewers or mobile apps. If the barcode settings cannot encode the URL alone, a different QR generation method may be required.
Free Microsoft Office alternative

Edit PDF documents and Office files with WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with PDF and Microsoft Office files. It can help with everyday document editing and migration, but it does not replace the Acrobat-specific dynamic QR form setup described above.

Work with PDFs alongside documents, spreadsheets, and presentationsOpen and edit compatible Microsoft Office formats, including DOCX, XLSX, and PPTXUse a familiar interface to move between common Office tasksGet started with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can one QR code contain both the base address and the form value?

Yes. Combine them into one complete URL in a calculated text field, then configure the QR field to encode that field's value if the form editor supports it.

Why does the QR code not update in a browser PDF viewer?

Browser and mobile PDF viewers may not support Acrobat JavaScript or dynamic barcode updates. Open the form in Acrobat and test it there, then verify behavior in each viewer your recipients use.

What if the field value contains spaces or special characters?

For a value appended as one URL path segment, use encodeURIComponent on the value in the calculated field's script. Check the resulting URL in a browser before relying on the QR code.

Can I use two QR codes to create one hyperlink?

No. Each QR code is scanned separately. Encode the complete URL in one QR code so the scanner can recognize it as a single destination.